Changeset 2424 for trunk/src/kash/eval.c
- Timestamp:
- Oct 18, 2010, 10:52:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/eval.c
r2423 r2424 511 511 INTON; 512 512 if (prevfd > 0) { 513 shfile_close(&psh->fdtab, 0); 514 copyfd(psh, prevfd, 0); 515 shfile_close(&psh->fdtab, prevfd); 513 movefd(psh, prevfd, 0); 516 514 } 517 515 if (pip[1] >= 0) { 518 516 shfile_close(&psh->fdtab, pip[0]); 519 517 if (pip[1] != 1) { 520 shfile_close(&psh->fdtab, 1); 521 copyfd(psh, pip[1], 1); 522 shfile_close(&psh->fdtab, pip[1]); 518 movefd(psh, pip[1], 1); 523 519 } 524 520 } … … 582 578 shfile_close(&psh->fdtab, pip[0]); 583 579 if (pip[1] != 1) { 584 shfile_close(&psh->fdtab, 1); 585 copyfd(psh, pip[1], 1); 586 shfile_close(&psh->fdtab, pip[1]); 580 movefd(psh, pip[1], 1); 587 581 } 588 582 eflag(psh) = 0; … … 911 905 shfile_close(&psh->fdtab, pip[0]); 912 906 if (pip[1] != 1) { 913 shfile_close(&psh->fdtab, 1); 914 copyfd(psh, pip[1], 1); 915 shfile_close(&psh->fdtab, pip[1]); 907 movefd(psh, pip[1], 1); 916 908 } 917 909 }
Note:
See TracChangeset
for help on using the changeset viewer.