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 12:25:48 +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: In-reply-to: X-mailer: Pegasus Mail for Windows (v2.54) Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > On Thu, 22 Apr 1999, Salvador Eduardo Tropea (SET) wrote: > > > 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. > > A program which catches SIGSEGV can ineed do that, to some extent (there > are bad crashes, like when the stack is scrogged, that would prevent even > this from working). However, Mark was suggesting a solution that should > be part of the library. And a library function that hooks SIGSEGV > complicates its usage too much. Normally programs that catch SIGSEGV finally does the traceback dump, trying to delete the files there won't complicate the stuff, but of course isn't as good as having an OS that does the work. 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