We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4685d05 commit 308fe04Copy full SHA for 308fe04
1 file changed
src/posix/proc.c
@@ -288,6 +288,11 @@ wait_thread_loop(UNUSED void *arg)
288
pthread_cond_signal(&proc_wait_thread_cond);
289
pthread_mutex_unlock(&proc_wait_thread_mtx);
290
do {
291
+ /*
292
+ * Check for errors before altering the cancellation
293
+ * state, so we don't end up calling sigwaitinfo
294
+ * with the cancellations disabled.
295
+ */
296
if (ret < 0) {
297
dbg_printf("sigwaitinfo(2): %s", strerror(errno));
298
continue;
0 commit comments