Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!think!ames!amdahl!dlb!auspyr!mick From: mick@auspyr.UUCP Newsgroups: comp.unix.wizards Subject: unlinking open files (was Re: Seek on a pipe) Message-ID: <6695@auspyr.UUCP> Date: Thu, 18-Jun-87 12:10:23 EDT Article-I.D.: auspyr.6695 Posted: Thu Jun 18 12:10:23 1987 Date-Received: Sat, 20-Jun-87 01:21:38 EDT Organization: Austec, Inc., San Jose, CA. USA Lines: 28 in article <7074@mimsy.UUCP>, chris@mimsy.UUCP (Chris Torek) says: > * We use the despicable trick of unlinking an open temporary file. > * The alternatives are too painful. I've often wondered about this. In the old days, I went through the pain of ensuring temp files were deleted by cleanup routines called before each exit point and upon catching nasty signals. Then the above trick occurred to me (must've been one afternoon after an especially heavy session at Ralph's)(AT&T joke) I've thought long and hard about it and can't see any good reason not to do this. Obviously, during development it is nice to leave temp files around etc etc.... But for real-world honest-to-god live applications, this seems like the best solution to avoid leaving temp file clutter lying around on poorly understood and administered Unix boxes. Comments anyone? -- ---- Mick {sdencore,necntc,cbosgd,amdahl,ptsfa,dana}!aussjo!mick {styx,imagen,dlb,gould,sci,altnet}!auspyr!mick