mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-13 12:37:46 +02: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:
@@ -4628,16 +4628,18 @@ unix_signal_helper_thread (gpointer data)
|
|||||||
g_warning ("Invalid char '%c' read from child watch pipe", b[i]);
|
g_warning ("Invalid char '%c' read from child watch pipe", b[i]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (sigterm_received)
|
if (sigterm_received)
|
||||||
deliver_unix_signal (SIGTERM);
|
deliver_unix_signal (SIGTERM);
|
||||||
if (sigint_received)
|
if (sigint_received)
|
||||||
deliver_unix_signal (SIGINT);
|
deliver_unix_signal (SIGINT);
|
||||||
if (sighup_received)
|
if (sighup_received)
|
||||||
deliver_unix_signal (SIGHUP);
|
deliver_unix_signal (SIGHUP);
|
||||||
|
if (sigchld_received)
|
||||||
|
deliver_sigchld ();
|
||||||
_g_main_wake_up_all_contexts ();
|
_g_main_wake_up_all_contexts ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
g_child_watch_source_init (void)
|
g_child_watch_source_init (void)
|
||||||
|
Reference in New Issue
Block a user