Sender: nate AT cartsys DOT com Message-ID: <3723C1B9.B7EF27@cartsys.com> Date: Sun, 25 Apr 1999 18:30:33 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586) MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: A workaround for Unix-style temporary files References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > > On Thu, 22 Apr 1999, Nate Eldredge wrote: > > > Also, IMHO, it's a misfeature. When your program crashes, data in > > tempfiles could be extremely helpful to debugging it. > > If this is a misfeature, it is in the application's code: if they want > the temporary files to stay, they need to provide an option that > avoids removing them. > > In contrast, this thread was about the *library*. If an application > _wants_ to remove temporary files, I think the library has no business > enforcing its ideas about such files on the programmer. After all, we > already have `tmpfile' which does remove the file on close. Okay, on reconsideration I think you are right. I was confusing some different things. Nevertheless, I still think the proposed "remove temp files on SIGSEGV" is a bad idea. It's overly complex, and the payoff is minimal. -- Nate Eldredge nate AT cartsys DOT com