2011年12月7日 星期三

[Linux] Signal should not be block

The following signal should be deliverd on the thread that generated the original error. Blocking them interferes with proper recovery


sigdelset(sig_mask, SIGABRT);
sigdelset(sig_mask, SIGBUS);
sigdelset(sig_mask, SIGEMT);
sigdelset(sig_mask, SIGFPE);
sigdelset(sig_mask, SIGILL);
sigdelset(sig_mask, SIGIOT);
sigdelset(sig_mask, SIGPIPE);
sigdelset(sig_mask, SIGSEGV);
sigdelset(sig_mask, SIGSYS);
sigdelset(sig_mask, SIGTRAP);

待續...