gmain: Only run through signal delivery once per read()

This is what I intended to do before.

https://bugzilla.gnome.org/show_bug.cgi?id=652072
This commit is contained in:
Colin Walters 2011-06-08 11:31:14 -04:00
parent ed827deb77
commit 211d7adf6e

View File

@ -4628,16 +4628,18 @@ unix_signal_helper_thread (gpointer data)
g_warning ("Invalid char '%c' read from child watch pipe", b[i]);
break;
}
}
if (sigterm_received)
deliver_unix_signal (SIGTERM);
if (sigint_received)
deliver_unix_signal (SIGINT);
if (sighup_received)
deliver_unix_signal (SIGHUP);
if (sigchld_received)
deliver_sigchld ();
_g_main_wake_up_all_contexts ();
}
}
}
static void
g_child_watch_source_init (void)