This website works better with JavaScript.
Home
Explore
Help
Sign In
Linux
/
st
generated from
gmarx/git-template
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
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.
master
Jan Klemkow
4 years ago
committed by
Hiltjo Posthuma
parent
43a395ae91
commit
d6ea0a1a61
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
st.c
+ 1
- 1
st.c
View File
@ -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
Write
Preview
Loading…
Cancel
Save