diff options
author | root <root> | 2008-10-29 06:32:48 +0000 |
---|---|---|
committer | root <root> | 2008-10-29 06:32:48 +0000 |
commit | 2e4b61ec1d566fe6fc68a371f5cb3d8a82e93d6b (patch) | |
tree | 30b3cde30b9e5d29e37dea92118b0a0ab5c28be8 /ev.c | |
parent | cb886a59b65819e53608f12d6b40db724d7e1e87 (diff) |
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -390,7 +390,7 @@ ev_set_syserr_cb (void (*cb)(const char *msg)) } static void noinline -syserr (const char *msg) +ev_syserr (const char *msg) { if (!msg) msg = "(libev) system error"; @@ -452,7 +452,10 @@ typedef struct unsigned char events; unsigned char reify; unsigned char emask; /* the epoll backend stores the actual kernel mask in here */ - unsigned char egen; /* generation counter to counter epoll bugs */ + unsigned char unused; +#if EV_USE_EPOLL + unsigned int egen; /* generation counter to counter epoll bugs */ +#endif #if EV_SELECT_IS_WINSOCKET SOCKET handle; #endif @@ -1000,7 +1003,7 @@ evpipe_init (EV_P) #endif { while (pipe (evpipe)) - syserr ("(libev) error creating signal/async pipe"); + ev_syserr ("(libev) error creating signal/async pipe"); fd_intern (evpipe [0]); fd_intern (evpipe [1]); @@ -1658,8 +1661,7 @@ ev_default_fork (void) struct ev_loop *loop = ev_default_loop_ptr; #endif - if (backend) - postfork = 1; /* must be in line with ev_loop_fork */ + ev_loop_fork (EV_A); } /*****************************************************************************/ |