ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.275 by root, Fri Dec 12 20:35:21 2008 UTC vs.
Revision 1.277 by root, Sun Dec 14 21:58:08 2008 UTC

1270 /* kqueue is borked on everything but netbsd apparently */ 1270 /* kqueue is borked on everything but netbsd apparently */
1271 /* it usually doesn't work correctly on anything but sockets and pipes */ 1271 /* it usually doesn't work correctly on anything but sockets and pipes */
1272 flags &= ~EVBACKEND_KQUEUE; 1272 flags &= ~EVBACKEND_KQUEUE;
1273#endif 1273#endif
1274#ifdef __APPLE__ 1274#ifdef __APPLE__
1275 // flags &= ~EVBACKEND_KQUEUE; for documentation 1275 // flags &= ~EVBACKEND_KQUEUE & ~EVBACKEND_POLL; for documentation
1276 flags &= ~EVBACKEND_POLL; 1276 flags &= ~EVBACKEND_SELECT;
1277#endif 1277#endif
1278 1278
1279 return flags; 1279 return flags;
1280} 1280}
1281 1281
2905static void 2905static void
2906embed_fork_cb (EV_P_ ev_fork *fork_w, int revents) 2906embed_fork_cb (EV_P_ ev_fork *fork_w, int revents)
2907{ 2907{
2908 ev_embed *w = (ev_embed *)(((char *)fork_w) - offsetof (ev_embed, fork)); 2908 ev_embed *w = (ev_embed *)(((char *)fork_w) - offsetof (ev_embed, fork));
2909 2909
2910 ev_embed_stop (EV_A_ w);
2911
2910 { 2912 {
2911 struct ev_loop *loop = w->other; 2913 struct ev_loop *loop = w->other;
2912 2914
2913 ev_loop_fork (EV_A); 2915 ev_loop_fork (EV_A);
2916 ev_loop (EV_A_ EVLOOP_NONBLOCK);
2914 } 2917 }
2918
2919 ev_embed_start (EV_A_ w);
2915} 2920}
2916 2921
2917#if 0 2922#if 0
2918static void 2923static void
2919embed_idle_cb (EV_P_ ev_idle *idle, int revents) 2924embed_idle_cb (EV_P_ ev_idle *idle, int revents)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines