We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 009c100 + 2cc0092 commit 4685d05Copy full SHA for 4685d05
1 file changed
src/posix/proc.c
@@ -288,16 +288,17 @@ 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
+ if (ret < 0) {
292
+ dbg_printf("sigwaitinfo(2): %s", strerror(errno));
293
+ continue;
294
+ }
295
+
296
/*
297
* Don't allow the thread to be cancelled until we've
298
* finished one loop in the monitoring thread. This
299
* ensures there are no nasty issue on exit.
300
*/
301
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
- if (ret < 0) {
- dbg_printf("sigwaitinfo(2): %s", strerror(errno));
- continue;
- }
302
303
304
* The knote_* functions (i.e. those that could free a
0 commit comments