From: Colin Walters Date: Mon, 22 Jul 2013 14:11:13 +0000 (+0100) Subject: tests/closure: Send SIGUSR1 only to our pid X-Git-Tag: 2.37.5~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9e01e0c37eb7928a99aeaa3d51007198991928d;p=platform%2Fupstream%2Fglib.git 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. --- 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; }