X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=purple.pyx;h=17411e78233f6ae7c2035846ba327b5f242f1219;hp=5de7e43f8d0fe53dcec5174a7c549af1133a683c;hb=39c1c26cdc38fe7dc79122c45bba7731b08ed1cd;hpb=d398c7889a23b5055833c0438de8fac3a2424f80 diff --git a/purple.pyx b/purple.pyx index 5de7e43..17411e7 100644 --- a/purple.pyx +++ b/purple.pyx @@ -23,6 +23,7 @@ cdef extern from "c_purple.h": glib.guint glib_input_add(glib.gint fd, eventloop.PurpleInputCondition condition, eventloop.PurpleInputFunction function, glib.gpointer data) import ecore +import signal cdef glib.GHashTable *c_ui_info @@ -93,6 +94,12 @@ cdef class Purple: # adds glib iteration inside ecore main loop ecore.timer_add(0.001, self.__glib_iteration_when_idle) + # libpurple's built-in DNS resolution forks processes to perform + # blocking lookups without blocking the main process. It does not + # handle SIGCHLD itself, so if the UI does not you quickly get an army + # of zombie subprocesses marching around. + signal.signal(signal.SIGCHLD, signal.SIG_IGN) + def destroy(self): core.purple_core_quit()