Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changes-entries/worker-just-die.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*) mpm_worker: Fix a possible hang or heap corruption of a child that
receives SIGTERM early in its startup, as for mpm_event (PR 70267).
[Yann Ylavic]
6 changes: 5 additions & 1 deletion server/mpm/worker/worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,13 @@ static void clean_child_exit(int code)
_exit(code);
}

/* The child's SIGTERM handler until child_main() handles signals itself:
* clean_child_exit() is not async-signal-safe and nothing needs cleaning
* that early (as in mpm_event, PR 70267).
*/
static void just_die(int sig)
{
clean_child_exit(0);
_exit(0);
}

/*****************************************************************
Expand Down
Loading