st
simple terminal
git clone https://9o.is/git/st.git
commit 515ac935746773941fb3b49eab2ddf4e22d42a15 parent 6a59f2afa7f6401daef63dbbeaa444c638b44c76 Author: sin <sin@2f30.org> Date: Tue, 11 Nov 2014 18:29:11 +0000 Call _exit() instead of exit() if exec*() fails exit() will also unwind the atexit() functions. This is bad because if exec*() fails the process is in an inconsistent state. Diffstat:
| M | st.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c @@ -1190,7 +1190,7 @@ execsh(void) { signal(SIGALRM, SIG_DFL); execvp(prog, args); - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } void