[glib/gmain: 5/5] Remove gtester hang workaround
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/gmain: 5/5] Remove gtester hang workaround
- Date: Thu, 28 Jul 2011 04:09:33 +0000 (UTC)
commit 9c70a4015508f98f383bc2f71fa476beeac246b5
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Jul 27 23:43:10 2011 -0400
Remove gtester hang workaround
Now that GMainLoop is race-free with respect to signal delivery, we can
remove the workaround from gtester.
glib/gtester.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/glib/gtester.c b/glib/gtester.c
index b0d9260..a934a12 100644
--- a/glib/gtester.c
+++ b/glib/gtester.c
@@ -624,21 +624,12 @@ parse_args (gint *argc_p,
*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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]