delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/03/13/05:25:36

Date: Tue, 13 Mar 2001 12:23:29 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Mark E." <snowball3 AT bigfoot DOT com>
cc: djgpp-workers AT delorie DOT com
Subject: Re: exit handler for fd_props.c
In-Reply-To: <3AAD7142.29241.6D9E9C@localhost>
Message-ID: <Pine.SUN.3.91.1010313122201.10085S-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 13 Mar 2001, Mark E. wrote:

> > Do you expect close()
> > to delete files that are marked for deletion? (which is what I assume)
> 
> Yes.
>  
> > And, if we're exiting anyway, do we really need to clean up so
> > carefully?  It's not a bad thing, just wondering if you're expecting
> > something unexpected.
> 
> If it's overkill, I can drop the cleanup. And if the whole patch is overkill, 
> I have no problem with flushing it.

I think that files marked to be deleted should be removed when the 
program exits.  Users expect all files to be closed on a normal exit, and 
they would expect temporary files to be removed on that occasion.  That's 
what Unix does with files that were removed but left open.

- Raw text -


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