Deal with the race in GMainLoop by installing a do-nothing timeout.
*argc_p = e;
}
+static gboolean
+do_nothing (gpointer data)
+{
+ return TRUE;
+}
+
int
main (int argc,
char **argv)
{
guint ui;
+ /* See #578295 */
+ g_timeout_add_seconds (5, do_nothing, NULL);
+
/* some unices need SA_RESTART for SIGCHLD to return -EAGAIN for io.
* we must fiddle with sigaction() *before* glib is used, otherwise
* we could revoke signal hanmdler setups from glib initialization code.