tests/closure: Send SIGUSR1 only to our pid
authorColin Walters <walters@verbum.org>
Mon, 22 Jul 2013 14:11:13 +0000 (15:11 +0100)
committerColin Walters <walters@verbum.org>
Mon, 22 Jul 2013 14:14:34 +0000 (15:14 +0100)
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

index 5f1a22c..8c32ee4 100644 (file)
@@ -165,7 +165,7 @@ test_closure_fd (void)
 static gboolean
 send_usr1 (gpointer user_data)
 {
-  kill (0, SIGUSR1);
+  kill (getpid (), SIGUSR1);
   return FALSE;
 }