Name
ap_note_subprocess — register a subprocess for killing on pool destruction
Synopsis
void ap_note_subprocess(pool *p, int pid, enum kill_conditions how)
Registers a subprocess to be killed on pool
destruction. Exactly how it is killed
depends on how
:
-
kill_never
Don’t kill the process or wait for it. This is normally used internally.
-
kill_after_timeout
Send the process a
SIGTERM
, wait three seconds, send aSIGKILL
, and wait for the process to die.-
kill_always
Send the process a
SIGKILL
and wait for the process to die.-
just_wait
Don’t send the process any kind of kill.
-
kill_only_once
Send a
SIGTERM
, then wait.
Note that all three-second delays are carried out at once, rather than one after the other.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.