replace exit(3) by _exit(2) in signal handler sigchld()
authorJan Klemkow <j.klemkow@wemelug.de>
Wed, 29 Apr 2020 22:10:02 +0000 (00:10 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Wed, 29 Apr 2020 23:21:21 +0000 (01:21 +0200)
commitd6ea0a1a61853dd892029a7126e7fdb70c371878
tree1f8c2881a9d6271fadd19f1ef36d1d0131f4e9de
parent43a395ae91f7d67ce694e65edeaa7bbc720dd027
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.
st.c