From 6854d0f52c464a278d5fb9f00b4507a11ee52080 Mon Sep 17 00:00:00 2001
From: dd
Date: Thu, 28 Jun 2001 22:06:27 +0000
Subject: 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
---
bin/ed/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'bin/ed')
diff --git a/bin/ed/main.c b/bin/ed/main.c
index af43f39..bb651e5 100644
--- a/bin/ed/main.c
+++ b/bin/ed/main.c
@@ -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);
--
cgit v1.1