Re: SEGV support for run-tests

From: Date: Thu, 03 Jul 2014 09:18:32 +0000
Subject: Re: SEGV support for run-tests
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-75203@lists.php.net to get a copy of this message
On Thu, Jul 3, 2014 at 9:23 AM, Michael Wallner <mike@php.net> wrote: > > On 3 July 2014 09:09, Michael Wallner <mike@php.net> wrote: > >> Internals, >> >> after a related discussion on IRC I tossed SEGV support into run-tests: >> http://sprunge dot us/SXZZ >> http://sprunge dot us/gfTA >> >> Thoughts? >> >> > See attachment, those URLs have been spam-blocked. > > > -- > Regards, > Mike > hi, I think the patch is wrong. from my experience, when a proc_opened process is killed via a signal (before you had a chance to proc_close() it) then the exitcode reported by proc_close() and proc_get_status() will be -1, but proc_get_status()["signaled"] will be true and proc_get_status()["termsig"] will have the signalcode of the signal which terminated the process(11 for sigsegv).

« previous php.internals (#75203) next »