From f4c862a2e72bfacff5dcfbc873e4d27a4d848b02 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Tue, 10 Nov 2015 04:31:00 +0000 Subject: 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@ --- include/signal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/signal.h') 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 -- cgit v1.2.3