tbetter cleanup; use /var/tmp - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 90c3dab6d4f928cdf6672f89ae820a48826fd701
DIR parent 5fa0329137c65d51d2ee14fa58eea07f139cf7c3
HTML Author: rsc <devnull@localhost>
Date: Sun, 23 Jul 2006 14:43:21 +0000
better cleanup; use /var/tmp
Diffstat:
M src/cmd/ed.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/src/cmd/ed.c b/src/cmd/ed.c
t@@ -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[])
t@@ -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();