VirtualBox

Changeset 71653 in vbox for trunk/src


Ignore:
Timestamp:
Apr 4, 2018 12:43:50 PM (7 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Make sure to terminate guest process tools in GuestProcessTool::uninit().

File:
1 edited

Legend:

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

    r71564 r71653  
    20012001void GuestProcessTool::uninit(void)
    20022002{
    2003     if (!pProcess.isNull())
    2004     {
    2005         /* Terminate (and unregister) process. */
    2006         pProcess->uninit();
    2007 
    2008         /* Release reference. */
    2009         pProcess.setNull();
    2010     }
    2011 
    2012     if (pSession)
    2013         pSession.setNull();
     2003    /* Make sure the process is terminated and unregistered from the guest session. */
     2004    int rcGuestIgnored;
     2005    int rc2 = terminate(30 * 1000 /* 30s timeout */, &rcGuestIgnored);
     2006    AssertRC(rc2);
     2007
     2008    /* Release references. */
     2009    pProcess.setNull();
     2010    pSession.setNull();
    20142011}
    20152012
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