Skip to content

Propagate kill signal to the child server process #163

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

Merged
merged 1 commit into from
May 30, 2016
Merged

Propagate kill signal to the child server process #163

merged 1 commit into from
May 30, 2016

Conversation

jubianchi
Copy link
Contributor

When using Couscous through Composer with scripts for example, Couscous might
get killed once a given timeout is reached: the child server process might not
be killed properly in this case.

PHP lets us catch kill signals (using pcntl_signal). Using this function we can
make Couscous propagate the signal it receives to its child process: the
server will then be killed by Couscous before it dies and everything will be ok.

When using Couscous through Composer with scripts for example, Couscous might
get killed once a given timeout is reached: the child server process might not
be killed properly in this case.

PHP lets us catch kill signals (using `pcntl_signal`). Using this function we can
make Couscous propagate the signal it receives to its child process: the
server will then be killed by Couscous before it dies and everything will be ok.
@mnapoli mnapoli added this to the 1.6 milestone May 30, 2016
@mnapoli
Copy link
Member

mnapoli commented May 30, 2016

That's awesome! 🚢

@mnapoli mnapoli merged commit 6a4eb3e into CouscousPHP:master May 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants