[Pidgin] #10324: signal handling code moved to GTK mainloop

Pidgin trac at pidgin.im
Wed Sep 16 15:25:44 EDT 2009


#10324: signal handling code moved to GTK mainloop
-------------------------+--------------------------------------------------
Reporter:  shaunlindsay  |        Type:  patch          
  Status:  new           |   Component:  pidgin (gtk)   
 Version:  2.6.2         |    Keywords:  signal handling
-------------------------+--------------------------------------------------
 Rather than running the signal handler code in sighandler itself, we
 should do the main portions of the handler in the glib mainloop.  Since
 glib doesn't have a built in way to watch signals in the main loop, we can
 use a socketpair and set up an io watch on that file descriptor, with the
 original sighandler code reading out of the socket.  Memory allocations
 and frees in the signal handlers can deadlock in the signal interrupts a
 malloc, so this will prevent some occasional, mysterious hangs.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/10324>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list