+2004-03-09 Sebastian Wilhelmi <seppi@seppi.de>
+
+ * tests/child-test.c: Do not run the g_child_watch_* test
+ multi-threaded, as that doesn't work on linux prior 2.6. Fixes
+ #136539.
+
2004-03-08 Alastair McKinstry <mckinstry@computer.org>
* configure.in: Added "ga" (Irish) to ALL_LINGUAS.
+2004-03-09 Sebastian Wilhelmi <seppi@seppi.de>
+
+ * tests/child-test.c: Do not run the g_child_watch_* test
+ multi-threaded, as that doesn't work on linux prior 2.6. Fixes
+ #136539.
+
2004-03-08 Alastair McKinstry <mckinstry@computer.org>
* configure.in: Added "ga" (Irish) to ALL_LINGUAS.
+2004-03-09 Sebastian Wilhelmi <seppi@seppi.de>
+
+ * tests/child-test.c: Do not run the g_child_watch_* test
+ multi-threaded, as that doesn't work on linux prior 2.6. Fixes
+ #136539.
+
2004-03-08 Alastair McKinstry <mckinstry@computer.org>
* configure.in: Added "ga" (Irish) to ALL_LINGUAS.
+2004-03-09 Sebastian Wilhelmi <seppi@seppi.de>
+
+ * tests/child-test.c: Do not run the g_child_watch_* test
+ multi-threaded, as that doesn't work on linux prior 2.6. Fixes
+ #136539.
+
2004-03-08 Alastair McKinstry <mckinstry@computer.org>
* configure.in: Added "ga" (Irish) to ALL_LINGUAS.
+2004-03-09 Sebastian Wilhelmi <seppi@seppi.de>
+
+ * tests/child-test.c: Do not run the g_child_watch_* test
+ multi-threaded, as that doesn't work on linux prior 2.6. Fixes
+ #136539.
+
2004-03-08 Alastair McKinstry <mckinstry@computer.org>
* configure.in: Added "ga" (Irish) to ALL_LINGUAS.
+2004-03-09 Sebastian Wilhelmi <seppi@seppi.de>
+
+ * tests/child-test.c: Do not run the g_child_watch_* test
+ multi-threaded, as that doesn't work on linux prior 2.6. Fixes
+ #136539.
+
2004-03-08 Alastair McKinstry <mckinstry@computer.org>
* configure.in: Added "ga" (Irish) to ALL_LINGUAS.
return TRUE;
}
+#ifdef TEST_THREAD
static gpointer
test_thread (gpointer data)
{
return NULL;
}
+#endif
int
main (int argc, char *argv[])
* implementation is available.
*/
#if defined(G_THREADS_ENABLED) && ! defined(G_THREADS_IMPL_NONE)
- g_thread_init (NULL);
+#ifdef TEST_THREAD
+ g_thread_init (NULL);
+#else
+ GPid pid;
+#endif
main_loop = g_main_loop_new (NULL, FALSE);
#ifdef G_OS_WIN32
#endif
alive = 2;
+#ifdef TEST_THREAD
g_thread_create (test_thread, GINT_TO_POINTER (10), FALSE, NULL);
g_thread_create (test_thread, GINT_TO_POINTER (20), FALSE, NULL);
+#else
+ pid = get_a_child (10);
+ g_child_watch_add (pid, child_watch_callback, GINT_TO_POINTER (10));
+ pid = get_a_child (20);
+ g_child_watch_add (pid, child_watch_callback, GINT_TO_POINTER (20));
+#endif
g_main_loop_run (main_loop);