On Tue, 2009-02-10 at 14:53 +1300, Michael Kerrisk wrote: > static void > handler(int sig, siginfo_t *si, void *uc) > { > /* Note: calling printf() from a signal handler is not > strictly correct, since printf() is not async-signal-safe; > see signal(7) */ > > printf("Caught signal %d\n", sig); > print_siginfo(si); > signal(SIG, SIG_IGN); > } signal(sig, SIG_IGN); -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html