mirror of
https://github.com/apache/httpd.git
synced 2025-10-28 20:34:59 +03:00
MPMs unix: Place signals handlers and helpers out of DSOs to avoid
a possible crash if a signal is caught during (graceful) restart. PR 60487. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1783849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1015,14 +1015,13 @@ AP_DECLARE(apr_status_t) ap_fatal_signal_setup(server_rec *s,
|
||||
#ifndef NO_USE_SIGACTION
|
||||
struct sigaction sa;
|
||||
|
||||
memset(&sa, 0, sizeof sa);
|
||||
sigemptyset(&sa.sa_mask);
|
||||
|
||||
#if defined(SA_ONESHOT)
|
||||
sa.sa_flags = SA_ONESHOT;
|
||||
#elif defined(SA_RESETHAND)
|
||||
sa.sa_flags = SA_RESETHAND;
|
||||
#else
|
||||
sa.sa_flags = 0;
|
||||
#endif
|
||||
|
||||
sa.sa_handler = sig_coredump;
|
||||
|
||||
Reference in New Issue
Block a user