VirtualBox

Ignore:
Timestamp:
Nov 22, 2010 3:50:09 PM (14 years ago)
Author:
vboxsync
Message:

Renaming, spelling.

File:
1 edited

Legend:

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

    r33854 r34255  
    331331 */
    332332static int VBoxServiceControlExecProcLoop(PVBOXSERVICECTRLTHREAD pThread,
    333                                           RTPROCESS hProcess, RTMSINTERVAL cMillies, RTPOLLSET hPollSet,
     333                                          RTPROCESS hProcess, RTMSINTERVAL cMsTimeout, RTPOLLSET hPollSet,
    334334                                          PRTPIPE phStdInW, PRTPIPE phStdOutR, PRTPIPE phStdErrR)
    335335{
     
    465465         */
    466466        uint32_t cMilliesLeft = RT_INDEFINITE_WAIT;
    467         if (cMillies != RT_INDEFINITE_WAIT)
     467        if (cMsTimeout != RT_INDEFINITE_WAIT)
    468468        {
    469469            uint64_t u64Now = RTTimeMilliTS();
    470470            uint64_t cMsElapsed = u64Now - MsStart;
    471             if (cMsElapsed >= cMillies)
    472             {
    473                 VBoxServiceVerbose(3, "ControlExec: Process timed out (%ums elapsed > %ums timeout), killing ...", cMsElapsed, cMillies);
     471            if (cMsElapsed >= cMsTimeout)
     472            {
     473                VBoxServiceVerbose(3, "ControlExec: Process timed out (%ums elapsed > %ums timeout), killing ...", cMsElapsed, cMsTimeout);
    474474
    475475                fProcessTimedOut = true;
     
    478478                {
    479479                    if (u64Now - MsProcessKilled > 20*60*1000)
    480                         break; /* give up after 20 mins */
     480                        break; /* Give up after 20 mins. */
    481481                    RTProcTerminate(hProcess);
    482482                    MsProcessKilled = u64Now;
     
    486486            }
    487487            else
    488                 cMilliesLeft = cMillies - (uint32_t)cMsElapsed;
     488                cMilliesLeft = cMsTimeout - (uint32_t)cMsElapsed;
    489489        }
    490490
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