Date: Thu, 22 Apr 1999 17:57:25 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: "Salvador Eduardo Tropea (SET)" cc: djgpp-workers AT delorie DOT com Subject: Re: A workaround for Unix-style temporary files In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.