VirtualBox

Changeset 65838 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 21, 2017 10:24:49 PM (8 years ago)
Author:
vboxsync
Message:

testdriver/vboxwrappers.py: shut up warnings about already removed VM pid during SessionWrapper.del().

File:
1 edited

Legend:

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

    r65730 r65838  
    542542        self.oConsoleEventHandler   = None;
    543543        self.uPid                   = None;
     544        self.fPidFile               = True;
    544545        self.fHostMemoryLow         = False;    # see signalHostMemoryLow; read-only for outsiders.
    545546
     
    866867                    reporter.logXcpt();
    867868
    868                 if self.uPid is not None:
     869                if self.uPid is not None and self.fPidFile:
    869870                    self.oTstDrv.pidFileRemove(self.uPid);
     871                    self.fPidFile = False;
    870872
    871873        self.oTstDrv.processPendingEvents();
     
    26532655            if self.uPid is not None:
    26542656                reporter.log2('getPid: %u' % (self.uPid,));
    2655                 self.oTstDrv.pidFileAdd(self.uPid, 'vm_%s' % (self.sName,), fSudo = True); # Set-uid-to-root is similar to SUDO.
     2657                self.fPidFile = self.oTstDrv.pidFileAdd(self.uPid, 'vm_%s' % (self.sName,), # Set-uid-to-root is similar to SUDO.
     2658                                                        fSudo = True);
    26562659        return self.uPid;
    26572660
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