www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/25/21:28:12

Sender: nate AT cartsys DOT com
Message-ID: <3723C1B9.B7EF27@cartsys.com>
Date: Sun, 25 Apr 1999 18:30:33 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 990425113917 DOT 9117M-100000 AT is>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019