Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug fix for cleanup
- To: crossfire (at) ifi.uio.no
- Subject: Bug fix for cleanup
- From:
- Date: Tue, 13 Oct 92 09:04:54 -0400
For various reasons, I altered TMPDIR to /usr/tmp and noticed
the following. Many map files get left - the map files are
not being cleaned up.
The fix is to be found in main.c and follows here.
These diffs are against 0.87.8
Pat Place
--- patch follows ---
*** /tmp/da11542 Tue Oct 13 09:02:47 1992
--- main.c Tue Oct 13 08:58:24 1992
***************
*** 1891,1899 ****
fprintf(stderr,"Cleaning up...\n");
for(m=first_map;m!=NULL;m=m->next) {
! sprintf(buf,"/tmp/%s.oo.%d",m->name,getpid());
unlink(buf);
! sprintf(buf,"/tmp/%s.om.%d",m->name,getpid());
unlink(buf);
}
}
--- 1891,1899 ----
fprintf(stderr,"Cleaning up...\n");
for(m=first_map;m!=NULL;m=m->next) {
! sprintf(buf,"%s/%s.oo.%d",TMPDIR,m->name,getpid());
unlink(buf);
! sprintf(buf,"%s/%s.om.%d",TMPDIR,m->name,getpid());
unlink(buf);
}
}