mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
better cleanup; use /var/tmp
This commit is contained in:
parent
5fa0329137
commit
90c3dab6d4
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue