ASF Bugzilla – Attachment 21040 Details for
Bug 43696
race condition when trying to shutdown httpd immediately after starting it
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to prefork.c
prefork.c.patch (text/plain), 810 bytes, created by
Arun Bhalla
on 2007-10-24 15:53:09 UTC
(
hide
)
Description:
patch to prefork.c
Filename:
MIME Type:
Creator:
Arun Bhalla
Created:
2007-10-24 15:53:09 UTC
Size:
810 bytes
patch
obsolete
>--- httpd-2.2.6/server/mpm/prefork/prefork-old.c 2007-10-24 15:15:41 -07:00 >+++ httpd-2.2.6/server/mpm/prefork/prefork.c 2007-10-24 15:17:57 -07:00 >@@ -949,6 +949,12 @@ > ap_scoreboard_image->global->running_generation = ap_my_generation; > } > >+ /* initialize before adding the signal handlers to avoid a race >+ * condition which previously existed when a signal was received >+ * while the child processes were being spawned >+ */ >+ restart_pending = shutdown_pending = 0; >+ > set_signals(); > > if (one_process) { >@@ -993,8 +999,6 @@ > apr_proc_mutex_name(accept_mutex), > apr_proc_mutex_defname()); > #endif >- restart_pending = shutdown_pending = 0; >- > mpm_state = AP_MPMQ_RUNNING; > > while (!restart_pending && !shutdown_pending) {
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 43696
: 21040