Re: setjmp usage
| From: | Stanislav Malyshev | Date: | Tue, 18 Mar 2008 18:14:11 +0000 |
| Subject: | Re: setjmp usage | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36194@lists.php.net to get a copy of this message | ||
Hi!
We are using setjmp(__bailout) in zend_try, but setjmp behaves differently on BSD and Linux. POSIX doesn't specify whether the signal mask should be saved or not for this call, so different operating systems do different things here. I think it would be more consistent if we used sigsetjmp(__bailout,0) to always specify that we don't need to store the signal mask. This avoids an expensive sigprocmask syscall.Sounds good. Can we still use longjmp or have to use siglongjmp? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com