[GRASS5] [bug #1038] (grass) Tempfile cleanup problem revisited: G_tempfile()

Glynn Clements glynn.clements at virgin.net
Sun May 5 19:58:52 EDT 2002


Markus Neteler wrote:

> the same problem of left-over temp-files occurs when a
> running GRASS module (which uses G_tempfile()) is terminated
> with CTRL-C or the kill command.
> Perhaps we could add some code to the signal handler (if present in
> GRASS) to delete open temp files when SIGINT, SIGQUIT, SIGKILL, SIGTERM
> occur.

You *cannot* catch SIGKILL. Also, you can't realistically handle
SIGSEGV either; although you can catch it, the memory might be too
badly corrupted to actually do anything about it.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list