ed

simple ed
git clone git://git.2f30.org/ed.git
Log | Files | Refs

commit 8c130c929d1f7ccb450b2d5da52b7a6456e7cc56
parent a09767b94adab35bee8d110bc7a0205addf9a378
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue Dec  8 19:26:55 +0100

Call quit() in sighup()

Quit() does all the needed work to exit from ed,
like for example remove the scratch file.

Diffstat:
ed.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ed.c b/ed.c @@ -1013,7 +1013,8 @@ sighup(int dummy) dowrite(fname, 1); } } - exit(1); + exstatus = 1; + quit(); } int