Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[warn] sigaction: Invalid argument #24

Open
dshemin opened this issue Oct 24, 2017 · 0 comments
Open

[warn] sigaction: Invalid argument #24

dshemin opened this issue Oct 24, 2017 · 0 comments

Comments

@dshemin
Copy link

dshemin commented Oct 24, 2017

Got this warning when trying to setup signal event, code sample:

$base = event_base_new();
$signalEvent = event_new();
event_set($signalEvent, SIGUSR1, EV_SIGNAL | EV_PERSIST, function () {
    echo 'Got signal'. PHP_EOL;
});
event_base_set($signalEvent, $base);
event_add($signalEvent);
event_base_loop($base);

Try it in Docker containers php7.0 and php7.0-zts, both based on Debian Jessie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant