Back out previous commit: it doesn't help anything since write_file(),
which is also called from handle_hup(), uses stdio(3). Furthermore, this means that calling exit(3) (via quit()) there is required to flush the buffer write_file() was working on. Submitted by: bde
This commit is contained in:
parent
4408e85a6d
commit
d164fef6d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78939
@ -1400,7 +1400,7 @@ handle_hup(signo)
|
||||
strcat(hup, "ed.hup");
|
||||
write_file(hup, "w", 1, addr_last);
|
||||
}
|
||||
_exit(2);
|
||||
quit(2);
|
||||
}
|
||||
|
||||
|
||||
@ -1409,7 +1409,7 @@ handle_int(signo)
|
||||
int signo;
|
||||
{
|
||||
if (!sigactive)
|
||||
_exit(1);
|
||||
quit(1);
|
||||
sigflags &= ~(1 << (signo - 1));
|
||||
#ifdef _POSIX_SOURCE
|
||||
siglongjmp(env, -1);
|
||||
|
Loading…
Reference in New Issue
Block a user