Re: pcntl_alarm() doesn't work with apache_worker (multithreaded)

From: Date: Tue, 31 Jul 2007 07:27:20 +0000
Subject: Re: pcntl_alarm() doesn't work with apache_worker (multithreaded)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-31333@lists.php.net to get a copy of this message
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

« previous php.internals (#31333) next »