Browse Source

async events might shadow signal events and vice versa, fixed

master
Marc Alexander Lehmann 14 years ago
parent
commit
0f428d452b
  1. 12
      ev.c

12
ev.c

@ -819,15 +819,15 @@ evpipe_init (EV_P)
void inline_size
evpipe_write (EV_P_ int sig, int async)
{
if (!(gotasync || gotsig))
{
int old_errno = errno; /* save errno becaue write might clobber it */
int sent = gotasync || gotsig;
if (sig) gotsig = 1;
if (async) gotasync = 1;
if (sig) gotsig = 1;
if (async) gotasync = 1;
if (!sent)
{
int old_errno = errno; /* save errno becaue write might clobber it */
write (evpipe [1], &old_errno, 1);
errno = old_errno;
}
}

Loading…
Cancel
Save