/*
- * Catching of signals and calling callback functions
+ * UCW Library -- Catching of signals and calling callback functions
*
* (c) 2004, Robert Spalek <robert@ucw.cz>
*/
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");
}
+
+void
+unhandle_signal(int signum, struct sigaction *oldact)
+{
+ if (sigaction(signum, oldact, NULL) < 0)
+ die("sigaction: %m");
+}