1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -04:00

sig_tstp: Use _exit() rather than exit().

This commit is contained in:
Kalle Olavi Niemitalo 2006-09-10 23:38:02 +03:00 committed by Kalle Olavi Niemitalo
parent 57a9871ea1
commit 07cee4edee

View File

@ -78,7 +78,12 @@ sig_tstp(struct terminal *term)
if (!fork()) {
sleep(1);
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
raise(SIGSTOP);