3450 |
|
|
3451 |
if (rc == 0) |
if (rc == 0) |
3452 |
{ |
{ |
3453 |
flags = FILE_PIPE | FILE_READ | FILE_BINARY; |
/* Protect against overflow, since Windows can open more handles than |
3454 |
fd_info[phandles[0]].flags = flags; |
our fd_info array has room for. */ |
3455 |
|
if (phandles[0] >= MAXDESC || phandles[1] >= MAXDESC) |
3456 |
|
{ |
3457 |
|
_close (phandles[0]); |
3458 |
|
_close (phandles[1]); |
3459 |
|
rc = -1; |
3460 |
|
} |
3461 |
|
else |
3462 |
|
{ |
3463 |
|
flags = FILE_PIPE | FILE_READ | FILE_BINARY; |
3464 |
|
fd_info[phandles[0]].flags = flags; |
3465 |
|
|
3466 |
flags = FILE_PIPE | FILE_WRITE | FILE_BINARY; |
flags = FILE_PIPE | FILE_WRITE | FILE_BINARY; |
3467 |
fd_info[phandles[1]].flags = flags; |
fd_info[phandles[1]].flags = flags; |
3468 |
|
} |
3469 |
} |
} |
3470 |
|
|
3471 |
return rc; |
return rc; |
3966 |
} |
} |
3967 |
|
|
3968 |
/* end of nt.c */ |
/* end of nt.c */ |
3969 |
|
|
3970 |
|
/* arch-tag: 90442dd3-37be-482b-b272-ac752e3049f1 |
3971 |
|
(do not change this comment) */ |