projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c2a3a4
)
Better handling in signal setter/getter of non-signal-using OSes.
author
Jean-Claude Beaudoin
<jean.claude.beaudoin@gmail.com>
Sun, 24 Jun 2012 07:28:11 +0000
(
03:28
-0400)
committer
Jean-Claude Beaudoin
<jean.claude.beaudoin@gmail.com>
Sun, 24 Jun 2012 07:28:11 +0000
(
03:28
-0400)
misc.c
patch
|
blob
|
history
diff --git
a/misc.c
b/misc.c
index
7c418cf
..
15359d6
100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-539,12
+539,24
@@
GC_API void GC_CALL GC_set_thread_restart_signal(int sig)
GC_API int GC_CALL GC_get_suspend_signal(void)
{
+# ifdef SIG_SUSPEND_DEFAULT
return suspend_signal;
+# elif defined(SIG_SUSPEND)
+ return SIG_SUSPEND;
+# else
+ return -1;
+#endif
}
GC_API int GC_CALL GC_get_thr_restart_signal(void)
{
+# ifdef SIG_THR_RESTART_DEFAULT
return thread_restart_signal;
+# elif defined(SIG_THR_RESTART)
+ return SIG_THR_RESTART;
+# else
+ return -1;
+#endif
}
#endif /* THREADS */