ASF Bugzilla – Attachment 34378 Details for
Bug 60261
Apache fails to start if previously crashed then restarted with same PID
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Same PID can't be running
same_pid.patch (text/plain), 723 bytes, created by
Yann Ylavic
on 2016-10-17 08:25:43 UTC
(
hide
)
Description:
Same PID can't be running
Filename:
MIME Type:
Creator:
Yann Ylavic
Created:
2016-10-17 08:25:43 UTC
Size:
723 bytes
patch
obsolete
>Index: server/mpm_unix.c >=================================================================== >--- server/mpm_unix.c (revision 1765124) >+++ server/mpm_unix.c (working copy) >@@ -788,7 +788,10 @@ int ap_signal_server(int *exit_status, apr_pool_t > status = "httpd (no pid file) not running"; > } > else { >- if (kill(otherpid, 0) == 0) { >+ /* With containerization, httpd may get the same PID at each startup, >+ * handle it as if it were not running (it obviously can't). >+ */ >+ if (otherpid != getpid() && kill(otherpid, 0) == 0) { > running = 1; > status = apr_psprintf(pconf, > "httpd (pid %" APR_PID_T_FMT ") already "
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60261
:
34377
| 34378