mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
tests: Fix the prototype of a GChildWatchFunc in spawn-multithreaded
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -88,7 +88,7 @@ get_a_child (gint ttl)
|
|||||||
#endif /* G_OS_WIN32 */
|
#endif /* G_OS_WIN32 */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static void
|
||||||
child_watch_callback (GPid pid, gint status, gpointer user_data)
|
child_watch_callback (GPid pid, gint status, gpointer user_data)
|
||||||
{
|
{
|
||||||
SpawnChildsData *data = user_data;
|
SpawnChildsData *data = user_data;
|
||||||
@@ -100,8 +100,6 @@ child_watch_callback (GPid pid, gint status, gpointer user_data)
|
|||||||
|
|
||||||
if (g_atomic_int_dec_and_test (data->n_alive))
|
if (g_atomic_int_dec_and_test (data->n_alive))
|
||||||
g_main_loop_quit (data->main_loop);
|
g_main_loop_quit (data->main_loop);
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gpointer
|
static gpointer
|
||||||
|
Reference in New Issue
Block a user