Mail Archives: djgpp-workers/1999/04/25/22:37:21
Bonjour
>
> Nevertheless, I still think the proposed "remove temp files on SIGSEGV"
> is a bad idea. It's overly complex, and the payoff is minimal.
> --
Two things come to mind. Again I'm not sure about DOS.
- SIGSEGV is not the only sig that can terminate a process/program if not
catch, SIGHUP, SIGPIPE, SIGABRT etc ... will terminate the process also.
- Is the file still in the namespace after unlink() ?
- On DOS, when the program terminates, is close() call on the file descriptors ?
Many Un*x programmers(Yes, guilty) have the bad habit of not explicitly closing
the file descritors. On termination of the process the kernel will release
any resources hold by the process .i.e calling close on all descriptors.
Maybe the unlink() or the _opentmp() emulation should register something
with atexit() to make sure that close() is call.
--
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!
- Raw text -