Mail Archives: djgpp-workers/1999/04/25/21:28:12
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
- Raw text -