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

Comparing libev/ev.c (file contents):
Revision 1.212 by root, Tue Feb 19 19:01:13 2008 UTC vs.
Revision 1.213 by root, Tue Feb 19 19:13:50 2008 UTC

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 int sent = gotasync || gotsig;
823
824 if (sig) gotsig = 1;
825 if (async) gotasync = 1;
826
827 if (!sent)
823 { 828 {
824 int old_errno = errno; /* save errno becaue write might clobber it */ 829 int old_errno = errno; /* save errno becaue write might clobber it */
825
826 if (sig) gotsig = 1;
827 if (async) gotasync = 1;
828
829 write (evpipe [1], &old_errno, 1); 830 write (evpipe [1], &old_errno, 1);
830
831 errno = old_errno; 831 errno = old_errno;
832 } 832 }
833} 833}
834 834
835static void 835static void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines