<What happens on Linux (and MacOS) if a process re...
# community-feeds
r
What happens on Linux (and MacOS) if a process receives a signal while waiting on pthread_cond_wait? In the Linux manual, in the signal(7) manual page, last section of "description", (https://man7.org/linux/man-pages/man7/signal.7.html) it says that a call to pthread_cond_wait interrupted by a signal will fail with EINTR (unless sa_restart was set in the handler) Again in the linux manual, in the pthread_cond_wait(3) (<a href="https://man7.org/linux/man-pages/man3/pthread_cond_wait.3p.html"...