nbd-server: block SIGCHLD when handling SIGTERM, and visa versa
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Jun 2012 21:45:01 +0000 (01:45 +0400)
committerWouter Verhelst <w@uter.be>
Sat, 23 Jun 2012 23:38:35 +0000 (01:38 +0200)
commit463c8bcf4e638bceb75e33ae3a419f93f1e52a68
tree997a9f6a3704d8153a5b97226b18a8f4390207bb
parente68de3612ac5b58bf64134216e22b131995e62a7
nbd-server: block SIGCHLD when handling SIGTERM, and visa versa

SIGCHLD handler must be blocked during execution of SIGTERM handler,
and visa versa, because the former changes "children" hash table
iterated by the latter.

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