X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fsighandler.c;h=9a76851423eaeaa5ad94c72e30ce1fab2988ee07;hb=d1a5b69d490ce61a0f41db08263580487720bf2f;hp=d6727de8e2118c96b3e48a7ee6a9c7e0336af912;hpb=9355af890e26cb9090a2732c19df416a8578e461;p=libucw.git diff --git a/lib/sighandler.c b/lib/sighandler.c index d6727de8..9a768514 100644 --- a/lib/sighandler.c +++ b/lib/sighandler.c @@ -1,5 +1,5 @@ /* - * Catching of signals and calling callback functions + * UCW Library -- Catching of signals and calling callback functions * * (c) 2004, Robert Spalek */ @@ -26,17 +26,21 @@ signal_handler_internal(int sig) void handle_signal(int signum, struct sigaction *oldact) { +#if 0 struct sigaction act; bzero(&act, sizeof(act)); act.sa_handler = signal_handler_internal; act.sa_flags = SA_NOMASK; if (sigaction(signum, &act, oldact) < 0) die("sigaction: %m"); +#endif } void unhandle_signal(int signum, struct sigaction *oldact) { +#if 0 if (sigaction(signum, oldact, NULL) < 0) die("sigaction: %m"); +#endif }