[glib/wip/gmain: 3/8] gmain: Only run through signal delivery once per read()
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gmain: 3/8] gmain: Only run through signal delivery once per read()
- Date: Fri, 10 Jun 2011 15:06:32 +0000 (UTC)
commit ec30a824deb60038d11ccbd9241ce220b9b682e5
Author: Colin Walters <walters verbum org>
Date: Wed Jun 8 11:31:14 2011 -0400
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
glib/gmain.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/glib/gmain.c b/glib/gmain.c
index dd3446d..f1e0f7c 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -4685,15 +4685,15 @@ unix_signal_helper_thread (gpointer data)
g_warning ("Invalid char '%c' read from child watch pipe", b[i]);
break;
}
- if (sigterm_received)
- deliver_unix_signal (SIGTERM);
- if (sigint_received)
- deliver_unix_signal (SIGINT);
- if (sighup_received)
- deliver_unix_signal (SIGHUP);
- if (sigchld_received)
- deliver_sigchld ();
}
+ if (sigterm_received)
+ deliver_unix_signal (SIGTERM);
+ if (sigint_received)
+ deliver_unix_signal (SIGINT);
+ if (sighup_received)
+ deliver_unix_signal (SIGHUP);
+ if (sigchld_received)
+ deliver_sigchld ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]