-
Notifications
You must be signed in to change notification settings - Fork 147
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
Signal handing in PHP #193
Comments
So, it looks like in this case the actual php-fpm process that correctly handles signals is pid 13, as printed by php, but honcho thinks it is 9, which is some kind of shell invocation wrapping the process like this: |
Hmm, yes. Honcho currently runs processes in a subshell, and the shell won't forward that signal to child processes. This is mostly a historical artifact, and while I don't remember the details I think it was some combination of a) Foreman did something similar, b) it was a straightforward way of allowing "shell-like" syntax (including The problem is that (as you've discovered) this can be very confusing. The exact behaviour will differ from system to system and from Procfile to Procfile due to the way that common shells interpret the "-c" argument. Specifically, Can you tell me what |
I'm having the same problem.
|
Hi,
I'm not sure if this is an issue with my setup, honcho or php, but maybe you can help..?
I have a
Procfile
withIt runs correctly, but it won't terminate the php process. When I hit Ctrl-c on the docker run command, I get this:
The SIGKILL line goes on indefinitely. I'm not sure if php is somehow restarting itself, or where to look. Any pointers where to look to debug. I'm using honcho v1.0.1.
Thanks!
The text was updated successfully, but these errors were encountered: