freebsd-src/lib/libthr
Dapeng Gao 7cae020b9c Simplify signal handling code in libthr by removing use of SYS_sigreturn
The use of SYS_sigreturn is unnecessary here.

If handle_signal is called when a signal is delivered, it can just
return normally back to sigcode which will call sigreturn anyway.

In case handle_signal is called by check_deferred_signal, using
setcontext is better than SYS_sigreturn because that is the correct
system call to pair with the earlier getcontext.

Reviewed by:	imp, kib
Differential Revision:	https://reviews.freebsd.org/D44893
2024-06-06 15:48:39 -06:00
..
arch libthr: move _umtx_op_err() to libsys 2024-02-05 20:34:56 +00:00
sys Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tests typo: Fix side -> size since it matters to the meaning... 2024-06-04 10:59:01 -06:00
thread Simplify signal handling code in libthr by removing use of SYS_sigreturn 2024-06-06 15:48:39 -06:00
libthr.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
Makefile Add a build knob for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
Makefile.depend dirdeps: Update/fix Makefile.depend* for toolchain 2023-11-26 20:50:13 -05:00
plockstat.d Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
pthread.map libthr: add pthread_sigqueue(3) 2024-04-23 19:51:22 +03:00