-
Notifications
You must be signed in to change notification settings - Fork 22
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
Error Cannot kill process XXXX: Operation not permitted! #17
Comments
Where is the message coming from? I don't see "kill process" in mod_ruid2 sources. Edit: from php: ./ext/opcache/ZendAccelerator.c: zend_accel_error(ACCEL_LOG_ERROR, "Cannot kill process %d: %s!", mem_usage_check->l_pid, strerror(errno)); |
Most likely https://bugs.php.net/bug.php?id=76482 |
ruid2 does not kill process.
Is the master Apache process who periodically tries to kill child
processes after serving a determinate number of request (set in apache
conf).
When it tries to kill a process that is running a non-ending PHP script
(like a notification service), as the process belongs to a different
user (as ruid2 does), it cannot kill it.
El 1/2/19 a las 14:07, Arkadiusz Miśkiewicz escribió:
…
Where is the message coming from? I don't see "kill process" in
mod_ruid2 sources.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhOvA8EmRSyCBc2GpB_vieuSyFFAtzBNks5vJDwigaJpZM4RMaGe>.
|
Not exactly. It's not apache. It's php (well, it's loaded as so into apache process). The killing code comes from php. php opcache module (which uses kill for some memory management reason). And the problem is that this php code doesn't handle EPERM well. So this issue should be closed as this is not ruid2 problem. |
When Apache 2.4 tries to kill a instance that is running under a userid set by ruid2, it cannot kill process, giving the error Error Cannot kill process XXXX: Operation not permitted!
This happens for example on a PHP script handling Server Event Notifications that is in a loop.
Then other apache clients become affected giving emty responses.
The text was updated successfully, but these errors were encountered: