Move the worker MPM to use ap_os_killpg in place of unixd_killpg as
this makes it more portable.
Ryan notes that really we should be using the POD mechanism to
control death of the child processes, so this is temporary until
we have that change in place. Note added to STATUS to that effect.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92598
13f79535-47bb-0310-9956-
ffa450edef68
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2001/12/24 13:24:30 $]
+Last modified at [$Date: 2001/12/25 12:24:14 $]
Release:
-0: Aaron (premature decision, needs more discussion)
-0: Cliff (I think the default config should be the safest possible)
+ * Fix the worker MPM to use POD to kill child processes instead
+ of ap_os_killpg, regardless of how they should die. (Ryan Bloom)
+
PRs that have been suspended forever waiting for someone to
put them into 'the next release':
apr_pool_t *ptrans);
#define beosd_killpg(x, y) (kill (-(x), (y)))
+#define ap_os_killpg(x, y) (kill (-(x), (y)))
#define BEOS_DAEMON_COMMANDS \
AP_INIT_TAKE1("User", beosd_set_user, NULL, RSRC_CONF, \
#ifdef HAVE_KILLPG
#define unixd_killpg(x, y) (killpg ((x), (y)))
+#define ap_os_killpg(x, y) (killpg ((x), (y)))
#else /* HAVE_KILLPG */
#define unixd_killpg(x, y) (kill (-(x), (y)))
+#define ap_os_killpg(x, y) (kill (-(x), (y)))
#endif /* HAVE_KILLPG */
#define UNIX_DAEMON_COMMANDS \
*/
wake_up_and_die();
- if (unixd_killpg(getpgrp(), SIGTERM) < 0) {
+ if (ap_os_killpg(getpgrp(), SIGTERM) < 0) {
ap_log_error(APLOG_MARK, APLOG_WARNING, errno, ap_server_conf,
"killpg SIGTERM");
}
* and a SIGHUP, we may as well use the same signal, because some user
* pthreads are stealing signals from us left and right.
*/
- if (unixd_killpg(getpgrp(), SIGTERM) < 0) {
+ if (ap_os_killpg(getpgrp(), SIGTERM) < 0) {
ap_log_error(APLOG_MARK, APLOG_WARNING, errno, ap_server_conf,
"killpg SIGTERM");
}