On Mon, Apr 19, 2004 at 09:18:08PM +0100, Zefram wrote: > Before I started using Event, I had a couple of signal handlers that, > as part of their work, locally modified the handling of their signal. > The interesting case is with SIGTSTP: after doing some application > cleanup, it would temporarily reset SIGTSTP to default handling and > unblock it and then deliver itself a SIGTSTP. The point of this is > that the behaviour looks, from the user's point of view, just like an > ordinary ^Z suspension, but the application cleanup gets done along > the way. After the program is restarted, the signal handler restores > the catching of SIGTSTP and does more bookkeeping before returning.
Have you tried simply calling ->stop() on the SIGTSTP signal watcher? I believe that will change the handler back to SIG_DFL. -- A new cognitive theory of emotion, http://openheartlogic.org
signature.asc
Description: Digital signature