From d9ad872cfbdb483f2e712679d439efb69bab2f8a Mon Sep 17 00:00:00 2001 From: guenther <> Date: Tue, 10 Nov 2015 04:30:59 +0000 Subject: [PATCH] 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@ --- src/include/signal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/signal.h b/src/include/signal.h index ac3d7f9d..7af669d2 100644 --- a/src/include/signal.h +++ b/src/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