Re: Async signals and GMainLoop



On Fri, Feb 20, 2004 at 01:00:36AM -0500, muppet wrote:
the key thing to note here, however is the "at strategic 'safe' points" 
*later* in the script's execution.  that means control must return to 
the interpreter for your handler to run.  in your test case, the SIGINT 
comes when the interpreter is blocking on the call to 
g_main_loop_run()...  the interpreter never reaches the point where it 
sees that it needs to run the handler!

After the signal handler runs, some call in g_main_loop_run returns
EINTR, right?  Does g_main_loop_run just go back to sleep when this
happens?  Shouldn't it communicate this to apps?  If it did, gtk-perl
could easily run the deferred signal handler, right?

Andrew



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]