diff options
| author | root <root> | 2007-11-06 19:29:20 +0000 | 
|---|---|---|
| committer | root <root> | 2007-11-06 19:29:20 +0000 | 
| commit | 4ff417bf39de590970c70b43c0d67a6967a46c67 (patch) | |
| tree | 2c8cb3211e0a30edfbb9f5e53b4568c4229b9123 | |
| parent | 0b7b062fb0b1c4f1ab22a52bd91f3c86195a084e (diff) | |
*** empty log message ***
| -rw-r--r-- | ev.c | 8 | 
1 files changed, 8 insertions, 0 deletions
| @@ -543,7 +543,11 @@ sighandler (int signum)      {        int old_errno = errno;        gotsig = 1; +#ifdef WIN32 +      send (sigpipe [1], &signum, 1, MSG_DONTWAIT); +#else        write (sigpipe [1], &signum, 1); +#endif        errno = old_errno;      }  } @@ -554,7 +558,11 @@ sigcb (EV_P_ struct ev_io *iow, int revents)    WL w;    int signum; +#ifdef WIN32 +  recv (sigpipe [0], &revents, 1, MSG_DONTWAIT); +#else    read (sigpipe [0], &revents, 1); +#endif    gotsig = 0;    for (signum = signalmax; signum--; ) | 
