mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 04:56:14 +01:00
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:
parent
ed827deb77
commit
211d7adf6e
16
glib/gmain.c
16
glib/gmain.c
@ -4628,14 +4628,16 @@ 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);
|
||||
_g_main_wake_up_all_contexts ();
|
||||
}
|
||||
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 ();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user