The glibc manual says:
Macro: int SIGTERM
The SIGTERM signal is a generic signal used to cause program termination. Unlike SIGKILL,
this signal can be blocked, handled, and ignored. It is the normal way to politely ask a program to
terminate.
The shell command kill generates SIGTERM by default.
SIGTERM doesn't invoke exit, so any atexit()
isn't processed...is this correct?
I had to do
signal(SIGINT, exit)
to generate the behavior I wanted...
In the posix specs, I didn't see an explanation of what SIG_DFL is supposed
to do...
--
marty
Member of the League for Programming Freedom (see http://www.lpf.org/)
"I just know I'm a better manager when I have Joe DiMaggio in center field"
Casey Stengel