nbd-server: do not call fcntl F_SETFL unnecessarily
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Jun 2012 21:43:07 +0000 (01:43 +0400)
committerWouter Verhelst <w@uter.be>
Sat, 23 Jun 2012 23:38:35 +0000 (01:38 +0200)
commit0b019ad559f6a664fa6f15c429c0bf6ea99ed564
tree7fc773694ce68dc07e2b7c450a9e5ee8f1d1556e
parentd072873d5756ba52c4cac4d13857e2acab98539f
nbd-server: do not call fcntl F_SETFL unnecessarily

Call fcntl F_SETFL only when new file status flags differ from the old one.

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