1
0
Fork 0

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
1 changed files with 6 additions and 1 deletions

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);