summaryrefslogtreecommitdiff
path: root/devel/glib2/patches/patch-ai
blob: b9d421cf6f96119816aa0b599a102c1d89863476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ai,v 1.18 2009/06/05 16:08:25 drochner Exp $

http://bugzilla.gnome.org/show_bug.cgi?id=583321

--- glib/gmain.c.orig	2009-05-29 07:18:56.000000000 +0200
+++ glib/gmain.c
@@ -3713,7 +3713,11 @@ g_child_watch_source_init_multi_threaded
  
   action.sa_handler = g_child_watch_signal_handler;
   sigemptyset (&action.sa_mask);
+#ifdef SA_RESTART
   action.sa_flags = SA_RESTART | SA_NOCLDSTOP;
+#else /* QNX */
+  action.sa_flags = SA_NOCLDSTOP;
+#endif
   sigaction (SIGCHLD, &action, NULL);
 }