projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d8e5ef
)
Only use SA_RESTART if it exists
author
Patrick Welche
<prlw1@cam.ac.uk>
Fri, 27 Sep 2013 09:09:32 +0000
(10:09 +0100)
committer
Patrick Welche
<prlw1@cam.ac.uk>
Fri, 27 Sep 2013 16:14:43 +0000
(17:14 +0100)
Fixes build on QNX (and possibly HPUX given Bug 168352)
Patch essentially from pkgsrc devel/glib2/patches/patch-ai
https://bugzilla.gnome.org/show_bug.cgi?id=583321
glib/gmain.c
patch
|
blob
|
history
diff --git
a/glib/gmain.c
b/glib/gmain.c
index
738e69c
..
4edf05e
100644
(file)
--- a/
glib/gmain.c
+++ b/
glib/gmain.c
@@
-4963,7
+4963,11
@@
ref_unix_signal_handler_unlocked (int signum)
struct sigaction action;
action.sa_handler = g_unix_signal_handler;
sigemptyset (&action.sa_mask);
+#ifdef SA_RESTART
action.sa_flags = SA_RESTART | SA_NOCLDSTOP;
+#else
+ action.sa_flags = SA_NOCLDSTOP;
+#endif
sigaction (signum, &action, NULL);
}
}