changed the io semaphore signalling behavior a little bit

This commit is contained in:
hyunghwan.chung 2018-02-19 16:22:15 +00:00
parent f6ec0b1a29
commit f668f81234

View File

@ -1381,8 +1381,8 @@ static void signal_io_semaphore (moo_t* moo, moo_ooi_t io_handle, moo_ooi_t mask
if (insem) if (insem)
{ {
if ((mask & MOO_SEMAPHORE_IO_MASK_OUTPUT) || if ((mask & (MOO_SEMAPHORE_IO_MASK_OUTPUT | MOO_SEMAPHORE_IO_MASK_ERROR)) ||
(!outsem && (mask & (MOO_SEMAPHORE_IO_MASK_HANGUP | MOO_SEMAPHORE_IO_MASK_ERROR)))) (!outsem && (mask & MOO_SEMAPHORE_IO_MASK_HANGUP)))
{ {
_signal_io_semaphore (moo, insem); _signal_io_semaphore (moo, insem);
} }