nbd-server: fix modernsock descriptor initialization and use
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Jun 2012 21:38:40 +0000 (01:38 +0400)
committerWouter Verhelst <w@uter.be>
Sat, 23 Jun 2012 23:38:34 +0000 (01:38 +0200)
commitf958e6563bd9e365c8adf6d2cc2aa023ae132681
tree80d60a866d5db9d5e2ffd086f061e33613cf2569
parent7fdf3f6531e3f1f61f11bbbc185cc4cf12f86ff9
nbd-server: fix modernsock descriptor initialization and use

Change the value for undefined "modern handler" descriptor from 0 to -1
because any value greater or equal to 0 can be a valid file descriptor.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
nbd-server.c