VirtualBox

Ignore:
Timestamp:
Sep 27, 2010 1:50:13 PM (14 years ago)
Author:
vboxsync
Message:

VBoxService/GuestExec: Logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp

    r31952 r32777  
    401401        if (MsProcessKilled == UINT64_MAX)
    402402        {
     403            VBoxServiceVerbose(3, "ControlExec: Process (PID=%u) is still alive and not killed yet\n",
     404                               pData->uPID);
     405
    403406            MsProcessKilled = RTTimeMilliTS();
    404407            RTProcTerminate(hProcess);
     
    408411        for (size_t i = 0; i < 10; i++)
    409412        {
     413            VBoxServiceVerbose(4, "ControlExec: Kill attempt %d/10: Waiting for process (PID=%u) exit ...\n",
     414                               i + 1, pData->uPID);
    410415            rc2 = RTProcWait(hProcess, RTPROCWAIT_FLAGS_NOBLOCK, &ProcessStatus);
    411416            if (RT_SUCCESS(rc2))
    412417            {
     418                VBoxServiceVerbose(4, "ControlExec: Kill attempt %d/10: Process (PID=%u) exited\n",
     419                                   i + 1, pData->uPID);
    413420                fProcessAlive = false;
    414421                break;
    415422            }
    416423            if (i >= 5)
     424            {
     425                VBoxServiceVerbose(4, "ControlExec: Kill attempt %d/10: Try to terminate (PID=%u) ...\n",
     426                                   i + 1, pData->uPID);
    417427                RTProcTerminate(hProcess);
     428            }
    418429            RTThreadSleep(i >= 5 ? 2000 : 500);
    419430        }
     431
     432        if (fProcessAlive)
     433            VBoxServiceVerbose(3, "ControlExec: Process (PID=%u) could not be killed\n", pData->uPID);
    420434    }
    421435
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette