http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c5
--- Comment #5 from Jon Nelson 2010-05-19 13:31:38 UTC ---
The generally accepted "safe" way of dealing with this type of issue is to:
a) use atexit
or
b) set a *flag* (global variable) in the signal handler, and check for the
value of that flag frequently (like, "want_exit_asap").
c) set or un-set the signal handler only during times when you really need to
catch it... otherwise, let the signal handler combined with atexit do their
jobs.
Although there are lots of things that can be done, the general rule of thumb
is to not to anything that might allocate memory, make a system call, block,
etc... inside a signal handler.
Hope that's helpful.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.