Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36194 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50447 invoked from network); 18 Mar 2008 18:17:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2008 18:17:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:1336] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/58-06623-64700E74 for ; Tue, 18 Mar 2008 13:17:45 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 18 Mar 2008 20:18:04 +0200 Received: from [192.168.16.115] ([192.168.16.115]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 18 Mar 2008 11:14:36 -0700 Message-ID: <47E00673.3020200@zend.com> Date: Tue, 18 Mar 2008 11:14:11 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Rasmus Lerdorf CC: internals@lists.php.net References: <47DF3CC2.6040207@lerdorf.com> In-Reply-To: <47DF3CC2.6040207@lerdorf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Mar 2008 18:14:36.0856 (UTC) FILETIME=[ECBA6B80:01C88923] Subject: Re: [PHP-DEV] setjmp usage From: stas@zend.com (Stanislav Malyshev) 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