Changeset 83259 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 11, 2020 3:18:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r82968 r83259 1147 1147 * @return IPRT status code. 1148 1148 * @param pProcess Pointer to appropriate process object. 1149 * @param hVfsIosDst Where to write the data. 1149 * @param hVfsIosDst Where to write the data. Can be the bit bucket or a (valid [std]) handle. 1150 1150 * @param uHandle Handle where to read the data from. 1151 1151 * @param cMsTimeout Timeout (in ms) to wait for the operation to … … 1186 1186 * 1187 1187 * @returns true if enabled and we successfully configured it. 1188 * @param fEnabled Whether pumping this pipe is configured. 1188 * @param fEnabled Whether pumping this pipe is configured to std handles, 1189 * or going to the bit bucket instead. 1189 1190 * @param enmHandle The IPRT standard handle designation. 1190 1191 * @param pszName The name for user messages. … … 1209 1210 RTMsgWarning("Error getting %s handle: %Rrc", pszName, vrc); 1210 1211 } 1212 else /* If disabled, all goes to / gets fed to/from the bit bucket. */ 1213 { 1214 RTFILE hFile; 1215 int vrc = RTFileOpenBitBucket(&hFile, enmHandle == RTHANDLESTD_INPUT ? RTFILE_O_READ : RTFILE_O_WRITE); 1216 if (RT_SUCCESS(vrc)) 1217 { 1218 vrc = RTVfsIoStrmFromRTFile(hFile, 0 /* fOpen */, false /* fLeaveOpen */, phVfsIos); 1219 if (RT_SUCCESS(vrc)) 1220 return true; 1221 } 1222 } 1223 1211 1224 return false; 1212 1225 } … … 1524 1537 RTThreadYield(); 1525 1538 fReadStdOut = fReadStdErr = true; 1539 /* Note: In case the user specified explicitly not wanting to wait for stdout / stderr, 1540 * the configured VFS handle goes to / will be fed from the bit bucket. */ 1526 1541 break; 1527 1542 case ProcessWaitResult_Timeout:
Note:
See TracChangeset
for help on using the changeset viewer.