… | … | ||
---|---|---|---|
106 | } | 106 | } |
107 | 107 | ||
108 | static void | 108 | static void |
109 | aio1_cb (EV_P_ ev_io *w, int revents) | 109 | aio1_cb (EV_P_ ev_io *w, int revents) |
110 | { | 110 | { |
111 | char dummy; | 111 | char dummy[9]; |
112 | 112 | ||
113 | if (read (w->fd, &dummy, 1) > 0) | 113 | if (read (w->fd, dummy, sizeof (dummy)) > 0) |
114 | { | 114 | { |
115 | ev_async_send (EV_DEFAULT_UC, &async_watcher); | 115 | ev_async_send (EV_DEFAULT_UC, &async_watcher); |
116 | coroapi::cede_pending = 1; | 116 | coroapi::cede_pending = 1; |
117 | } | 117 | } |
118 | } | 118 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |