X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=lib%2Futil%2Fsignal.c;h=3fc63b25e4409e3c31c0c9d64a18f416337fc3a4;hb=1d26012ce84d12cba236e5a88be25e6d489c9144;hp=ead947eb5e63332015774a8265942aa995f65dbf;hpb=f087a8e2b81fae82fa571ef09d2d1cb682cc8ff8;p=sfrench%2Fsamba-autobuild%2F.git diff --git a/lib/util/signal.c b/lib/util/signal.c index ead947eb5e6..3fc63b25e44 100644 --- a/lib/util/signal.c +++ b/lib/util/signal.c @@ -18,8 +18,10 @@ along with this program. If not, see . */ -#include "includes.h" +#include "replace.h" #include "system/wait.h" +#include "debug.h" +#include "lib/util/signal.h" /* Avoid /usr/include/signal.h */ /** * @file @@ -129,16 +131,16 @@ void (*CatchSignal(int signum,void (*handler)(int )))(int) Ignore SIGCLD via whatever means is necessary for this OS. **/ -void CatchChild(void) +void (*CatchChild(void))(int) { - CatchSignal(SIGCLD, sig_cld); + return CatchSignal(SIGCLD, sig_cld); } /** Catch SIGCLD but leave the child around so it's status can be reaped. **/ -void CatchChildLeaveStatus(void) +void (*CatchChildLeaveStatus(void))(int) { - CatchSignal(SIGCLD, sig_cld_leave_status); + return CatchSignal(SIGCLD, sig_cld_leave_status); }