ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/schmorp.h
(Generate patch)

Comparing IO-AIO/schmorp.h (file contents):
Revision 1.9 by root, Wed Aug 5 11:47:56 2009 UTC vs.
Revision 1.10 by root, Tue Mar 30 13:53:53 2010 UTC

444 if (epp->len) 444 if (epp->len)
445 { 445 {
446 if (dup2 (epn.fd [0], epp->fd [0]) < 0) 446 if (dup2 (epn.fd [0], epp->fd [0]) < 0)
447 croak ("unable to dup over old event pipe"); /* should not croak */ 447 croak ("unable to dup over old event pipe"); /* should not croak */
448 448
449 if (epp->fd [1] != epp->fd [0])
450 close (epn.fd [0]); 449 close (epn.fd [0]);
450
451 if (epn.fd [0] == epn.fd [1])
452 epn.fd [1] = epp->fd [0];
451 453
452 epn.fd [0] = epp->fd [0]; 454 epn.fd [0] = epp->fd [0];
453 } 455 }
454 456
455 *epp = epn; 457 *epp = epn;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines