Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Eli Zaretskii , djgpp-workers AT delorie DOT com Date: Thu, 22 Apr 1999 11:53:58 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: A workaround for Unix-style temporary files References: <199904211454 DOT KAA26575 AT mccoy2 DOT ECE DOT McGill DOT CA> In-reply-to: X-mailer: Pegasus Mail for Windows (v2.54) Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > > What makes it so attractive on Un*x and other POSIX syst. is that > > the behaviour will be consistent even when the program crash. You > > could use atexit() to cleanup, but when the program die unexpectedly > > its hard to cleanup without coorporation of the OS. > > Exactly. Therefore, any DJGPP-specific solution to this problem, even > if we decide to include it, won't be able to remove the temporaries in > all cases. But we can remove if the program crashes too, why not? For example: when my program crashes I store the unsaved documents in a special file, so libc can remove temporals during a crash too. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(5411) 4759 0013