lib: util [ctdb]: Signal handling - change CatchChild() and CatchChildLeaveStatus...
authorJeremy Allison <jra@samba.org>
Tue, 23 Sep 2014 21:48:35 +0000 (14:48 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 30 Sep 2014 18:40:16 +0000 (20:40 +0200)
commitfc8e1056fee9779a8bc40e7398b49bfbaa94ccd7
tree15d6291d80ad944dcf1936a27d2cfe96a600ead0
parent16e460e180cf8d6708b27137742fbce80e29b823
lib: util [ctdb]: Signal handling - change CatchChild() and CatchChildLeaveStatus() to return the previous handler.

Bug #10831 - SIGCLD Signal handler not correctly reinstalled on old library code use - smbrun etc.

https://bugzilla.samba.org/show_bug.cgi?id=10831

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/lib/util/signal.c
ctdb/lib/util/util.h
lib/util/samba_util.h
lib/util/signal.c