Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31333 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31827 invoked by uid 1010); 31 Jul 2007 07:27:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31812 invoked from network); 31 Jul 2007 07:27:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2007 07:27:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=antony@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: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:50839] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/10-29186-B54EEA64 for ; Tue, 31 Jul 2007 03:27:26 -0400 Received: (qmail 32062 invoked from network); 31 Jul 2007 07:27:20 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 31 Jul 2007 07:27:20 -0000 Message-ID: <46AEE458.7070303@zend.com> Date: Tue, 31 Jul 2007 11:27:20 +0400 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Nico Sabbi CC: internals@lists.php.net References: <46ADBC9E.4040402@officinedigitali.it> In-Reply-To: <46ADBC9E.4040402@officinedigitali.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] pcntl_alarm() doesn't work with apache_worker (multithreaded) From: antony@zend.com (Antony Dovgal) On 30.07.2007 14:25, Nico Sabbi wrote: > Hi, > $subject says everything: when php runs under a multithreaded apache > pcntl_alarm() doesn't work: the alarm is never delivered. That's pretty much expected since your web-server is multithreaded, while "alarm() arranges for a SIGALRM signal to be delivered to the **process** in seconds seconds." (c) man alarm > My version of php is 5.2.3, but also all versions I tried of 5.1 work > the same. > > Nico > -- Wbr, Antony Dovgal