VirtualBox

Changeset 43061 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Aug 29, 2012 9:23:43 AM (12 years ago)
Author:
vboxsync
Message:

Main/GuestCtrl: Respect the ProcessCreateFlag_WaitForProcessStartOnly flag.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r42920 r43061  
    658658        {
    659659            fSignal = (uWaitFlags & ProcessWaitForFlag_Start);
     660            /* If the caller only wants to wait until the process has been started,
     661             * notify in any case. */
     662            if (mData.mProcess.mFlags & ProcessCreateFlag_WaitForProcessStartOnly)
     663                fSignal = true;
    660664            waitRes = ProcessWaitResult_Start;
    661665
     
    13031307                }
    13041308
     1309                /*
     1310                 * If ProcessCreateFlag_WaitForProcessStartOnly was specified on process creation the
     1311                 * caller is not interested in getting further process statuses -- so just don't notify
     1312                 * anything here anymore and return.
     1313                 */
     1314                if (mData.mProcess.mFlags & ProcessCreateFlag_WaitForProcessStartOnly)
     1315                    waitRes.mResult = ProcessWaitResult_Start;
    13051316                break;
    13061317            }
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r43060 r43061  
    861861                LogFlowThisFunc(("%s successfully completed\n", procInfo.mName.c_str()));
    862862            }
     863        }
     864        else if (   procInfo.mFlags == ProcessCreateFlag_WaitForProcessStartOnly
     865                 && waitRes.mResult == ProcessWaitResult_Start)
     866        {
     867            LogFlowThisFunc(("%s successfully started\n", procInfo.mName.c_str()));
    863868        }
    864869        else
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