From f668f812347e8f6946ac887a890d116ab049d51c Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Mon, 19 Feb 2018 16:22:15 +0000 Subject: [PATCH] changed the io semaphore signalling behavior a little bit --- moo/lib/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moo/lib/exec.c b/moo/lib/exec.c index 77c5859..1b2c7e8 100644 --- a/moo/lib/exec.c +++ b/moo/lib/exec.c @@ -1381,8 +1381,8 @@ static void signal_io_semaphore (moo_t* moo, moo_ooi_t io_handle, moo_ooi_t mask if (insem) { - if ((mask & MOO_SEMAPHORE_IO_MASK_OUTPUT) || - (!outsem && (mask & (MOO_SEMAPHORE_IO_MASK_HANGUP | MOO_SEMAPHORE_IO_MASK_ERROR)))) + if ((mask & (MOO_SEMAPHORE_IO_MASK_OUTPUT | MOO_SEMAPHORE_IO_MASK_ERROR)) || + (!outsem && (mask & MOO_SEMAPHORE_IO_MASK_HANGUP))) { _signal_io_semaphore (moo, insem); }