$NetBSD: patch-aq,v 1.1 2007/06/28 01:20:53 lkundrak Exp $ Part of fix for CVE-2007-3304 Denial of Service. --- include/mpm_common.h.orig 2007-06-28 02:53:26.000000000 +0200 +++ include/mpm_common.h @@ -145,6 +145,17 @@ int ap_unregister_extra_mpm_process(pid_ #endif /** + * Safely signal an MPM child process, if the process is in the + * current process group. Otherwise fail. + * @param pid the process id of a child process to signal + * @param sig the signal number to send + * @return APR_SUCCESS if signal is sent, otherwise an error as per kill(3) + */ +#ifdef AP_MPM_WANT_RECLAIM_CHILD_PROCESSES +apr_status_t ap_mpm_safe_kill(pid_t pid, int sig); +#endif + +/** * Determine if any child process has died. If no child process died, then * this process sleeps for the amount of time specified by the MPM defined * macro SCOREBOARD_MAINTENANCE_INTERVAL.