plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 90c3dab6d4f928cdf6672f89ae820a48826fd701
parent 5fa0329137c65d51d2ee14fa58eea07f139cf7c3
Author: rsc <devnull@localhost>
Date:   Sun, 23 Jul 2006 14:43:21 +0000

better cleanup; use /var/tmp

Diffstat:
Msrc/cmd/ed.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cmd/ed.c b/src/cmd/ed.c @@ -125,7 +125,7 @@ void substitute(int); Rune La[] = { 'a', 0 }; Rune Lr[] = { 'r', 0 }; -char tmp[] = "/tmp/eXXXXX"; +char tmp[] = "/var/tmp/eXXXXX"; void main(int argc, char *argv[]) @@ -692,7 +692,7 @@ notifyf(void *a, char *s) error1(Q); notejmp(a, savej, 0); } - if(strcmp(s, "hangup") == 0){ + if(strcmp(s, "hangup") == 0 || strcmp(s, "kill") == 0){ if(rescuing) noted(NDFLT); rescue();