summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-11-10 04:31:00 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-11-10 04:31:00 +0000
commitf4c862a2e72bfacff5dcfbc873e4d27a4d848b02 (patch)
tree55ce8d828a416a6311793064b0650abf78062d59 /include
parent2de40dc0593bdf96a17ccf05b725d8b4260ec0e1 (diff)
Split the intra-thread functionality from kill(2) into its own syscall
thrkill(2), rolling the kill(2) syscall number with the ABI change to avoid breaking binaries during during the transition. thrkill(2) includes a 'tcb' argument that eliminates the need for locking in pthread_kill() and simplifies pthread_cancel(). Switch __stack_smash_handler() to use thrkill(2) and explicitly unblock SIGABRT. Minor bump to both libc and libpthread: make sure you install a new kernel! ok semarie@
Diffstat (limited to 'include')
-rw-r--r--include/signal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/signal.h b/include/signal.h
index ac3d7f9d594..7af669d2dbb 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: signal.h,v 1.22 2014/07/12 02:51:52 guenther Exp $ */
+/* $OpenBSD: signal.h,v 1.23 2015/11/10 04:30:59 guenther Exp $ */
/* $NetBSD: signal.h,v 1.8 1996/02/29 00:04:57 jtc Exp $ */
/*-
@@ -113,6 +113,7 @@ int sigblock(int);
int sigreturn(struct sigcontext *);
int sigsetmask(int);
int sigvec(int, struct sigvec *, struct sigvec *);
+int thrkill(pid_t _tid, int _signum, void *_tcb);
#endif
#endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 199309 || __XPG_VISIBLE >= 500