exit signal

DanKarron at UCBVAX.BERKELEY.EDU DanKarron at UCBVAX.BERKELEY.EDU
Sun Dec 16 17:45:28 AEST 1990


How can I set a signal handler for a software exit() call ? I am
looking to catch programs that exit via an exit(value) call, or fall
off the end of the main procedure. I do not have control of the user code.

I want to save the window state of the application program. I have
a macro to edit "exit(value)" to "Exit(value)", but that does not catch
mains falling off the end, or exit() with no args.

I tried SIGTERM, but that does not do what I want. What does it do ?

Cheers!

dan.
+-----------------------------------------------------------------------------+
| karron at nyu.edu (E-mail alias that will always find me)                      |
| Fax: 212 340 7190           *           Dan Karron, Research Associate      |
| . . . . . . . . . . . . . . *           New York University Medical Center  |
| 560 First Avenue           \*\    Pager <1> (212) 397 9330                  |
| New York, New York 10016    \**\        <2> 10896   <3> <your-number-here>  |
| (212) 340 5210               \***\_________________________________________ |
| Main machine: karron.med.nyu.edu (128.122.135.3) IRIS 85GT                  |
+-----------------------------------------------------------------------------+



More information about the Comp.sys.sgi mailing list