- Fixed wrong sigaction() call passing signal number 65 (invalid)

This commit is contained in:
Felipe Pena 2011-06-05 01:15:10 +00:00
parent b86161982b
commit 379c32bd41

View File

@ -377,7 +377,7 @@ void zend_signal_startup()
/* Save previously registered signal handlers into orig_handlers */
memset(&global_orig_handlers, 0, sizeof(global_orig_handlers));
for (signo = 1; signo <= NSIG; ++signo) {
for (signo = 1; signo < NSIG; ++signo) {
if (sigaction(signo, NULL, &sa) == 0) {
global_orig_handlers[signo-1].flags = sa.sa_flags;
if (sa.sa_flags & SA_SIGINFO) {