]> granicus.if.org Git - php/commit
Use sigsetjmp and siglongjmp instead of setjmp/longjmp in order to be
authorRasmus Lerdorf <rasmus@php.net>
Tue, 18 Mar 2008 18:34:11 +0000 (18:34 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 18 Mar 2008 18:34:11 +0000 (18:34 +0000)
commitc9e0781d2abab740f81a620c27a30391a11466ab
treefde421399331cf0d8c560d5a028c0be04a4f6407
parent4d9cbaf7a4e51b98479fc51a33479fe69e56a8f5
Use sigsetjmp and siglongjmp instead of setjmp/longjmp in order to be
consistent in how we deal with the signal mask.  POSIX doesn't specify
what to do with the signal mask in setjmp/longjmp which has resulted in
the signal mask getting saved on *BSD and not getting saved on Linux.
Making the behaviour explicit via sigsetjmp/siglongjmp gives us
consistency and saves expensive sigprocmask() syscalls on *BSD.
Zend/zend.c
Zend/zend.h
Zend/zend_globals.h