Introduction
Introduction Statistics Contact Development Disclaimer Help
tCall _exit() instead of exit() if exec*() fails - st - [fork] customized build…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 4418939dd9f3a7b3cfd3071234ed18ae86538f2a
parent bafbba56cd5735c680676db2adf6f614ba61356f
Author: sin <[email protected]>
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
t@@ -1190,7 +1190,7 @@ execsh(void) {
signal(SIGALRM, SIG_DFL);
execvp(prog, args);
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
}
void
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.