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

Comparing libev/ev.c (file contents):
Revision 1.209 by root, Tue Feb 5 23:56:33 2008 UTC vs.
Revision 1.210 by root, Sat Feb 9 00:34:11 2008 UTC

810 fd_intern (evpipe [0]); 810 fd_intern (evpipe [0]);
811 fd_intern (evpipe [1]); 811 fd_intern (evpipe [1]);
812 812
813 ev_io_set (&pipeev, evpipe [0], EV_READ); 813 ev_io_set (&pipeev, evpipe [0], EV_READ);
814 ev_io_start (EV_A_ &pipeev); 814 ev_io_start (EV_A_ &pipeev);
815 ev_unref (EV_A); /* child watcher should not keep loop alive */ 815 ev_unref (EV_A); /* watcher should not keep loop alive */
816 } 816 }
817} 817}
818 818
819void inline_size 819void inline_size
820evpipe_write (EV_P_ int sig, int async) 820evpipe_write (EV_P_ int sig, int async)
821{ 821{
822 if (!(gotasync || gotsig)) 822 if (!(gotasync || gotsig))
823 { 823 {
824 int old_errno = errno; 824 int old_errno = errno; /* save errno becaue write might clobber it */
825 825
826 if (sig) gotsig = 1; 826 if (sig) gotsig = 1;
827 if (async) gotasync = 1; 827 if (async) gotasync = 1;
828 828
829 write (evpipe [1], &old_errno, 1); 829 write (evpipe [1], &old_errno, 1);
830
830 errno = old_errno; 831 errno = old_errno;
831 } 832 }
832} 833}
833 834
834static void 835static void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines