summaryrefslogtreecommitdiff
path: root/devel/glib2/patches/patch-ai
blob: 3726ef0f961b92f3bf62e29c8b6e962ca6db03b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ai,v 1.21 2012/11/13 21:23:07 adam Exp $

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

--- glib/gmain.c.orig	2011-10-14 04:03:10.000000000 +0000
+++ glib/gmain.c
@@ -4538,7 +4538,11 @@ ensure_unix_signal_handler_installed_unl
 
   action.sa_handler = g_unix_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 (signum, &action, NULL);
 }