GRASS library exits.

Greg Spencer grassp-list at amber.cecer.army.mil
Tue, 31 Mar 1992 09:50:05 -0700


Yesterday I was able to figure out a trick to overcome the exits
present in GRASS:

I created my own function called exit() which does nothing, and when
the program is linked, this function is called, instead of the "real"
exit.  In my program, I now use a call to another function (Exit())
which merely calls _exit() when I want to get out.

This gets around the calls to exit in the GRASS library, and still allows
my program to exit when it wants.

Thanks for the suggestions.

		-Greg.