mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-06 23:44:43 -04:00
sig_tstp: Use _exit() rather than exit().
This commit is contained in:
parent
57a9871ea1
commit
07cee4edee
@ -78,7 +78,12 @@ sig_tstp(struct terminal *term)
|
|||||||
if (!fork()) {
|
if (!fork()) {
|
||||||
sleep(1);
|
sleep(1);
|
||||||
kill(pid, SIGCONT);
|
kill(pid, SIGCONT);
|
||||||
exit(0);
|
/* Use _exit() rather than exit(), so that atexit
|
||||||
|
* functions are not called, and stdio output buffers
|
||||||
|
* are not flushed. Any such things must have been
|
||||||
|
* inherited from the parent process, which will take
|
||||||
|
* care of them when appropriate. */
|
||||||
|
_exit(0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
raise(SIGSTOP);
|
raise(SIGSTOP);
|
||||||
|
Loading…
Reference in New Issue
Block a user