Reorder some statements
o9000 mrovi9000@gmail.com
1 files changed,
5 insertions(+),
2 deletions(-)
jump to
M
src/tint.c
→
src/tint.c
@@ -326,13 +326,16 @@ }
} // Set signal handlers signal_pending = 0; + + struct sigaction sa_chld = {.sa_handler = SIG_DFL, .sa_flags = SA_NOCLDWAIT}; + sigaction(SIGCHLD, &sa_chld, 0); + struct sigaction sa = {.sa_handler = signal_handler}; - struct sigaction sa_chld = {.sa_handler = SIG_DFL, .sa_flags = SA_NOCLDWAIT}; sigaction(SIGUSR1, &sa, 0); sigaction(SIGINT, &sa, 0); sigaction(SIGTERM, &sa, 0); sigaction(SIGHUP, &sa, 0); - sigaction(SIGCHLD, &sa_chld, 0); + #ifdef BACKTRACE_ON_SIGNAL struct sigaction sa_crash = {.sa_handler = crash_handler}; sigaction(SIGSEGV, &sa_crash, 0);