aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ed.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-07-23 14:43:21 +0000
committerrsc <devnull@localhost>2006-07-23 14:43:21 +0000
commit90c3dab6d4f928cdf6672f89ae820a48826fd701 (patch)
treef65a087970c432bdf1883aded1c8d4fe7831b5bb /src/cmd/ed.c
parent5fa0329137c65d51d2ee14fa58eea07f139cf7c3 (diff)
downloadplan9port-90c3dab6d4f928cdf6672f89ae820a48826fd701.tar.gz
plan9port-90c3dab6d4f928cdf6672f89ae820a48826fd701.tar.bz2
plan9port-90c3dab6d4f928cdf6672f89ae820a48826fd701.zip
better cleanup; use /var/tmp
Diffstat (limited to 'src/cmd/ed.c')
-rw-r--r--src/cmd/ed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/ed.c b/src/cmd/ed.c
index f8ae9f05..1f477a99 100644
--- 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();