better cleanup; use /var/tmp

This commit is contained in:
rsc 2006-07-23 14:43:21 +00:00
parent 5fa0329137
commit 90c3dab6d4

View file

@ -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();