Changeset 29438 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- May 12, 2010 9:50:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r29193 r29438 318 318 if (verbose) 319 319 RTPrintf("No time left to wait for process!\n"); 320 } 320 } 321 321 } 322 322 else if (verbose) 323 RTPrintf("Waiting for process to exit ...\n"); 323 RTPrintf("Waiting for process to exit ...\n"); 324 324 325 325 /* setup signal handling if cancelable */ … … 344 344 while (SUCCEEDED(progress->COMGETTER(Completed(&fCompleted)))) 345 345 { 346 /* 346 /* 347 347 * because we want to get all the output data even if the process 348 348 * already ended, we first need to check whether there is some data 349 349 * left to output before checking the actual timeout and is-process-completed 350 * stuff. 350 * stuff. 351 351 */ 352 352 if (cbOutputData <= 0) … … 363 363 } 364 364 365 if ( waitForStdOut 365 if ( waitForStdOut 366 366 || waitForStdErr) 367 367 { 368 CHECK_ERROR_BREAK(guest, GetProcessOutput(uPID, 0 /* aFlags */, 368 CHECK_ERROR_BREAK(guest, GetProcessOutput(uPID, 0 /* aFlags */, 369 369 u32TimeoutMS, _64K, ComSafeArrayAsOutParam(aOutputData))); 370 370 cbOutputData = aOutputData.size(); … … 421 421 } 422 422 else 423 { 423 { 424 424 if (fCompleted) 425 425 { … … 440 440 CHECK_ERROR_BREAK(guest, GetProcessStatus(uPID, &uRetExitCode, &uRetFlags, &uRetStatus)); 441 441 RTPrintf("Exit code=%u (Status=%u, Flags=%u)\n", uRetExitCode, uRetStatus, uRetFlags); 442 } 443 } 444 else /* not completed yet? -> timeout */ 445 { 446 RTPrintf("Process timed out!\n"); 442 } 447 443 } 448 444 }
Note:
See TracChangeset
for help on using the changeset viewer.