commit d6ea0a1a61853dd892029a7126e7fdb70c371878 from: Jan Klemkow via: Hiltjo Posthuma date: Wed Apr 29 23:21:21 2020 UTC replace exit(3) by _exit(2) in signal handler sigchld() exit(3) is not async-signal-safe but, _exit(2) is. This change prevents st to crash and dump core. commit - 43a395ae91f7d67ce694e65edeaa7bbc720dd027 commit + d6ea0a1a61853dd892029a7126e7fdb70c371878 blob - 0ce6ac24591968723c7b70e5cb0af992df8e67b5 blob + 2bf133f4ad99686b1c34f08c0dfa9ad1027f2840 --- st.c +++ st.c @@ -730,7 +730,7 @@ sigchld(int a) die("child exited with status %d\n", WEXITSTATUS(stat)); else if (WIFSIGNALED(stat)) die("child terminated due to signal %d\n", WTERMSIG(stat)); - exit(0); + _exit(0); } void