[Pidgin] #10324: signal handling code moved to GTK mainloop
Pidgin
trac at pidgin.im
Wed Nov 4 17:54:22 EST 2009
#10324: signal handling code moved to GTK mainloop
-----------------------------+----------------------------------------------
Reporter: shaunlindsay | Owner:
Type: patch | Status: closed
Milestone: 2.6.4 | Component: pidgin (gtk)
Version: 2.6.2 | Resolution: fixed
Keywords: signal handling |
-----------------------------+----------------------------------------------
Changes (by markdoliner at pidgin.im):
* status: new => closed
* resolution: => fixed
* milestone: Patches Needing Review => 2.6.4
Comment:
(In [964025d624cbb6d302e3b5f6af14fa60f14bf80f]):[[BR]]
We really shouldn't be doing a whole lot in our signal handler. The
signal handler can get called in the middle of a malloc, for example,
and if the signal handler tries to allocate memory then the program
can deadlock.
This change works around that problem by having the signal handler
write to a pipe. Our main program watches the pipe for incoming data
and performs the appropriate action.
This patch is from Shaun Lindsay at Meebo.
Fixes #10324
--
Ticket URL: <http://developer.pidgin.im/ticket/10324#comment:2>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list