VirtualBox

Changeset 61105 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 20, 2016 2:56:17 PM (9 years ago)
Author:
vboxsync
Message:

vboxwrappers.py: SessionWrapper.powerOff: Moved the deregistration of the event handler to before we try power off the VM as XPCOM/python/someone seems to deadlock occationally if we do it while the call is running.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py

    r60564 r61105  
    22192219        Returns None if the progress object returns failure.
    22202220        """
     2221        #
     2222        # Deregister event handler before we power off the VM, otherwise we're
     2223        # racing for VM process termination and cause misleading spurious
     2224        # error messages in the event handling code, because the event objects
     2225        # disappear.
     2226        #
     2227        # Note! Doing this before powerDown to try prevent numerous smoketest
     2228        #       timeouts on XPCOM hosts.
     2229        #
     2230        self.deregisterEventHandlerForTask();
     2231
     2232
     2233        # Try power if off.
    22212234        try:
    22222235            oProgress = self.o.console.powerDown();
     
    22282241            return False;
    22292242
    2230         # Deregister event handler now, otherwise we're racing for VM process
    2231         # termination and cause misleading spurious error messages in the
    2232         # event handling code, because the event objects disappear.
    2233         self.deregisterEventHandlerForTask();
    2234 
     2243        # Wait on power off operation to complete.
    22352244        rc = self.oTstDrv.waitOnProgress(oProgress);
    22362245        if rc < 0:
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