Changeset 2298 for trunk/src/kash/shfile.c
- Timestamp:
- Mar 1, 2009, 6:18:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shfile.c
r2297 r2298 625 625 SecurityAttributes.bInheritHandle = TRUE; 626 626 627 if (!CreatePipe(&hRead, &hWrite, &SecurityAttributes, 4096)) 627 fds[1] = fds[0] = -1; 628 if (CreatePipe(&hRead, &hWrite, &SecurityAttributes, 4096)) 628 629 { 629 630 fds[0] = shfile_insert(pfdtab, (intptr_t)hRead, O_RDONLY, -1, "shfile_pipe"); … … 637 638 # else 638 639 int native_fds[2]; 640 641 fds[1] = fds[0] = -1; 639 642 if (!pipe(native_fds)) 640 643 { 641 fds[1] = -1;642 644 fds[0] = shfile_insert(pfdtab, native_fds[0], O_RDONLY, -1, "shfile_pipe"); 643 645 if (fds[0] != -1) … … 673 675 rc = -1; 674 676 } 677 } 678 else 679 { 680 # if K_OS == K_OS_WINDOWS 681 errno = shfile_dos2errno(GetLastError()); 682 # endif 683 rc = -1; 675 684 } 676 685
Note:
See TracChangeset
for help on using the changeset viewer.