-
assigned issue to
- edited description
Segmentation fault on PROCESS STATUS CHANGES
Issue #8
wontfix
Hi
When I try the code from your examples I am getting Segmentation fault. ev version is 0.2.10 compiled under lampp php 5.5.9
EXAMPLE CODE
$pid = pcntl_fork(); if ($pid == -1) { fprintf(STDERR, "pcntl_fork failed\n"); } elseif ($pid) { $w = new EvChild($pid, FALSE, function ($w, $revents) { $w->stop(); printf("Process %d exited with status %d\n", $w->rpid, $w->rstatus); }); Ev::run(); // Protect against Zombies pcntl_wait($status); } else { //Forked child exit(2); }
Comments (3)
-
repo owner -
repo owner - changed status to on hold
-
repo owner - changed status to wontfix
No response
- Log in to comment
I can't reproduce this bug. However, you mention "lamp". Did you run this code under Apache SAPI? The extension is really intended for CLI SAPI only!
bug.php
How I run it from CLI
My PHP version