[glib] tests/closure: Send SIGUSR1 only to our pid
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests/closure: Send SIGUSR1 only to our pid
- Date: Mon, 22 Jul 2013 14:14:45 +0000 (UTC)
commit d9e01e0c37eb7928a99aeaa3d51007198991928d
Author: Colin Walters <walters verbum org>
Date: Mon Jul 22 15:11:13 2013 +0100
tests/closure: Send SIGUSR1 only to our pid
Otherwise in e.g. the gnome-ostree integrationtest system, we
end up sending SIGUSR1 to the *entire session*, which triggers
various badness in untested debugging paths from gnome-session.
gobject/tests/closure.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/tests/closure.c b/gobject/tests/closure.c
index 5f1a22c..8c32ee4 100644
--- a/gobject/tests/closure.c
+++ b/gobject/tests/closure.c
@@ -165,7 +165,7 @@ test_closure_fd (void)
static gboolean
send_usr1 (gpointer user_data)
{
- kill (0, SIGUSR1);
+ kill (getpid (), SIGUSR1);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]