Changeset 32777 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Sep 27, 2010 1:50:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r31952 r32777 401 401 if (MsProcessKilled == UINT64_MAX) 402 402 { 403 VBoxServiceVerbose(3, "ControlExec: Process (PID=%u) is still alive and not killed yet\n", 404 pData->uPID); 405 403 406 MsProcessKilled = RTTimeMilliTS(); 404 407 RTProcTerminate(hProcess); … … 408 411 for (size_t i = 0; i < 10; i++) 409 412 { 413 VBoxServiceVerbose(4, "ControlExec: Kill attempt %d/10: Waiting for process (PID=%u) exit ...\n", 414 i + 1, pData->uPID); 410 415 rc2 = RTProcWait(hProcess, RTPROCWAIT_FLAGS_NOBLOCK, &ProcessStatus); 411 416 if (RT_SUCCESS(rc2)) 412 417 { 418 VBoxServiceVerbose(4, "ControlExec: Kill attempt %d/10: Process (PID=%u) exited\n", 419 i + 1, pData->uPID); 413 420 fProcessAlive = false; 414 421 break; 415 422 } 416 423 if (i >= 5) 424 { 425 VBoxServiceVerbose(4, "ControlExec: Kill attempt %d/10: Try to terminate (PID=%u) ...\n", 426 i + 1, pData->uPID); 417 427 RTProcTerminate(hProcess); 428 } 418 429 RTThreadSleep(i >= 5 ? 2000 : 500); 419 430 } 431 432 if (fProcessAlive) 433 VBoxServiceVerbose(3, "ControlExec: Process (PID=%u) could not be killed\n", pData->uPID); 420 434 } 421 435
Note:
See TracChangeset
for help on using the changeset viewer.