Browse Source

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@
OPENBSD_5_9
guenther 9 years ago
parent
commit
d9ad872cfb
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/include/signal.h

+ 2
- 1
src/include/signal.h View File

@ -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 $ */ /* $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 sigreturn(struct sigcontext *);
int sigsetmask(int); int sigsetmask(int);
int sigvec(int, struct sigvec *, struct sigvec *); int sigvec(int, struct sigvec *, struct sigvec *);
int thrkill(pid_t _tid, int _signum, void *_tcb);
#endif #endif
#endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */ #endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 199309 || __XPG_VISIBLE >= 500 #if __BSD_VISIBLE || __POSIX_VISIBLE >= 199309 || __XPG_VISIBLE >= 500


Loading…
Cancel
Save