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

Comparing libev/ev_linuxaio.c (file contents):
Revision 1.46 by root, Sun Jul 7 08:33:14 2019 UTC vs.
Revision 1.47 by root, Mon Jul 8 02:45:43 2019 UTC

587 587
588ecb_cold 588ecb_cold
589static void 589static void
590linuxaio_fork (EV_P) 590linuxaio_fork (EV_P)
591{ 591{
592 /* this frees all iocbs, which is very heavy-handed */
593 linuxaio_destroy (EV_A);
594 linuxaio_submitcnt = 0; /* all pointers were invalidated */ 592 linuxaio_submitcnt = 0; /* all pointers were invalidated */
593 linuxaio_free_iocp (EV_A); /* this frees all iocbs, which is very heavy-handed */
594 evsys_io_destroy (linuxaio_ctx); /* fails in child, aio context is destroyed */
595 595
596 linuxaio_iteration = 0; /* we start over in the child */ 596 linuxaio_iteration = 0; /* we start over in the child */
597 597
598 while (linuxaio_io_setup (EV_A) < 0) 598 while (linuxaio_io_setup (EV_A) < 0)
599 ev_syserr ("(libev) linuxaio io_setup"); 599 ev_syserr ("(libev) linuxaio io_setup");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines