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

Comparing libev/ev.c (file contents):
Revision 1.536 by root, Wed Aug 10 16:50:05 2022 UTC vs.
Revision 1.537 by sf-exg, Sun May 14 19:02:31 2023 UTC

2396inline_size void 2396inline_size void
2397fd_reify (EV_P) 2397fd_reify (EV_P)
2398{ 2398{
2399 int i; 2399 int i;
2400 2400
2401 /* most backends do not modify the fdchanges list in backend_modfiy. 2401 /* most backends do not modify the fdchanges list in backend_modify.
2402 * except io_uring, which has fixed-size buffers which might force us 2402 * except io_uring, which has fixed-size buffers which might force us
2403 * to handle events in backend_modify, causing fdchanges to be amended, 2403 * to handle events in backend_modify, causing fdchanges to be amended,
2404 * which could result in an endless loop. 2404 * which could result in an endless loop.
2405 * to avoid this, we do not dynamically handle fds that were added 2405 * to avoid this, we do not dynamically handle fds that were added
2406 * during fd_reify. that means that for those backends, fdchangecnt 2406 * during fd_reify. that means that for those backends, fdchangecnt
3508#endif 3508#endif
3509 3509
3510 if (postfork != 2) 3510 if (postfork != 2)
3511 { 3511 {
3512 #if EV_USE_SIGNALFD 3512 #if EV_USE_SIGNALFD
3513 /* surprisingly, nothing needs to be done for signalfd, accoridng to docs, it does the right thing on fork */ 3513 /* surprisingly, nothing needs to be done for signalfd, according to docs, it does the right thing on fork */
3514 #endif 3514 #endif
3515 3515
3516 #if EV_USE_TIMERFD 3516 #if EV_USE_TIMERFD
3517 if (ev_is_active (&timerfd_w)) 3517 if (ev_is_active (&timerfd_w))
3518 { 3518 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines