opnsense-src/lib/libthr/thread
Konstantin Belousov 9f78c837d9 check_cancel: when in_sigsuspend, send SIGCANCEL unconditionally
not only when check_cancel is called from the signal handler.
_thr_wake() is not enough to get the sigsuspend(2) syscall out of the
loop, since it only terminates sleep when an unblocked signal is
delivered.

PR:	283101
In collaboration with:	pho
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D48200
2024-12-28 19:01:58 +02:00
..
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
thr_affinity.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_attr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_autoinit.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_barrier.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_barrierattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_cancel.c pthread_setcancelstate(3): make it async-signal-safe 2024-12-28 19:01:50 +02:00
thr_clean.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_concurrency.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_cond.c libthr: restore _pthread_cond_timedwait 2024-03-12 21:03:14 +00:00
thr_condattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_create.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_ctrdtr.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_detach.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_equal.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_event.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_exit.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_fork.c libthr: allow very early atfork registration 2024-11-13 19:33:44 -06:00
thr_getcpuclockid.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getprio.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getschedparam.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getthreadid_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_info.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_init.c libc, libthr: coordinate stubs for pthread_{suspend,resume}_all_np 2024-11-13 20:48:05 -06:00
thr_join.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_kern.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_kill.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_list.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_main_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_malloc.c Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
thr_multi_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_mutex.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_mutexattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_once.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_printf.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_private.h libthr: move dlerror_msg into zeroed part of struct thread 2024-12-28 19:01:34 +02:00
thr_pshared.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_pspinlock.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_resume_np.c libc, libthr: coordinate stubs for pthread_{suspend,resume}_all_np 2024-11-13 20:48:05 -06:00
thr_rtld.c lib{c,sys}: stop exposing errno symbol 2024-09-27 20:27:46 +01:00
thr_rwlock.c libthr: move __always_inline to canonical position 2024-06-24 10:05:58 -07:00
thr_rwlockattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_self.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_sem.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_setprio.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_setschedparam.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_sig.c check_cancel: when in_sigsuspend, send SIGCANCEL unconditionally 2024-12-28 19:01:58 +02:00
thr_sigqueue.c libthr: add pthread_sigqueue(3) 2024-04-23 19:51:22 +03:00
thr_single_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_sleepq.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_spec.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_spinlock.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_stack.c rtld: avoid division in __thr_map_stacks_exec() 2024-07-30 02:57:33 +03:00
thr_suspend_np.c libc, libthr: coordinate stubs for pthread_{suspend,resume}_all_np 2024-11-13 20:48:05 -06:00
thr_switch_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_symbols.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_syscalls.c libthr: avoid varargs in fcntl and openat interposers 2024-05-08 15:49:13 +01:00
thr_umtx.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_umtx.h libthr: move _umtx_op_err() to libsys 2024-02-05 20:34:56 +00:00
thr_yield.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00