summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-11-13 09:57:44 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-11-13 09:57:44 +0000
commit3f2e4dfbf663ab7a05516dcead0147245fd794df (patch)
tree48cf1a9aed844ba83b3c26157a8463675c58872b
parent1b0bc1b2ebe04170f05f98310288d1f5e074d7e5 (diff)
downloadFreeBSD-src-3f2e4dfbf663ab7a05516dcead0147245fd794df.zip
FreeBSD-src-3f2e4dfbf663ab7a05516dcead0147245fd794df.tar.gz
Define SIGLWP which is an alias for SIGTHR, the reason why I did this
is that gdb knows SIGLWP and will pass it to program, otherwise gdb will print out "unknown signal" and discard it, and then thread cancellation won't work for libthr under gdb. MFC: 3 days
-rw-r--r--sys/sys/signal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 8e4daa6..ff52b64 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -110,6 +110,7 @@
#endif
#if __BSD_VISIBLE
#define SIGTHR 32 /* reserved by thread library. */
+#define SIGLWP SIGTHR
#endif
#define SIGRTMIN 65
OpenPOWER on IntegriCloud