Changeset 86414 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Oct 2, 2020 11:41:26 AM (4 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/vfs/vfsmisc.cpp
r82968 r86414 61 61 */ 62 62 RTHANDLE h; 63 int rc = RTHandleGetStandard(enmStdHandle, &h);63 int rc = RTHandleGetStandard(enmStdHandle, fLeaveOpen, &h); 64 64 if (RT_SUCCESS(rc)) 65 65 { -
trunk/src/VBox/Runtime/r3/posix/RTHandleGetStandard-posix.cpp
r82968 r86414 53 53 54 54 55 RTDECL(int) RTHandleGetStandard(RTHANDLESTD enmStdHandle, PRTHANDLE ph)55 RTDECL(int) RTHandleGetStandard(RTHANDLESTD enmStdHandle, bool fLeaveOpen, PRTHANDLE ph) 56 56 { 57 57 /* … … 108 108 { 109 109 case RTHANDLETYPE_FILE: 110 /** @todo fLeaveOpen */ 110 111 rc = RTFileFromNative(&h.u.hFile, fd); 111 112 break; … … 114 115 rc = RTPipeFromNative(&h.u.hPipe, fd, 115 116 (enmStdHandle == RTHANDLESTD_INPUT ? RTPIPE_N_READ : RTPIPE_N_WRITE) 116 | (fInherit ? RTPIPE_N_INHERIT : 0)); 117 | (fInherit ? RTPIPE_N_INHERIT : 0) 118 | (fLeaveOpen ? RTPIPE_N_LEAVE_OPEN : 0)); 117 119 break; 118 120 119 121 case RTHANDLETYPE_SOCKET: 122 /** @todo fLeaveOpen */ 120 123 rc = rtSocketCreateForNative(&h.u.hSocket, fd); 121 124 break; -
trunk/src/VBox/Runtime/r3/win/RTHandleGetStandard-win.cpp
r82968 r86414 43 43 44 44 45 RTDECL(int) RTHandleGetStandard(RTHANDLESTD enmStdHandle, PRTHANDLE ph)45 RTDECL(int) RTHandleGetStandard(RTHANDLESTD enmStdHandle, bool fLeaveOpen, PRTHANDLE ph) 46 46 { 47 47 /* … … 102 102 { 103 103 case RTHANDLETYPE_FILE: 104 /** @todo fLeaveOpen */ 104 105 rc = RTFileFromNative(&h.u.hFile, (RTHCUINTPTR)hNative); 105 106 break; … … 108 109 rc = RTPipeFromNative(&h.u.hPipe, (RTHCUINTPTR)hNative, 109 110 (enmStdHandle == RTHANDLESTD_INPUT ? RTPIPE_N_READ : RTPIPE_N_WRITE) 110 | (fInherit ? RTPIPE_N_INHERIT : 0)); 111 | (fInherit ? RTPIPE_N_INHERIT : 0) 112 | (fLeaveOpen ? RTPIPE_N_LEAVE_OPEN : 0)); 111 113 break; 112 114 113 115 case RTHANDLETYPE_SOCKET: 116 /** @todo fLeaveOpen */ 114 117 rc = rtSocketCreateForNative(&h.u.hSocket, (RTHCUINTPTR)hNative); 115 118 break;
Note:
See TracChangeset
for help on using the changeset viewer.