VirtualBox

Changeset 92886 in vbox


Ignore:
Timestamp:
Dec 13, 2021 2:12:48 PM (3 years ago)
Author:
vboxsync
Message:

ValKit/vboxinstaller.py: Do 'sudo /bin/kill -9 pid' if utils.processKill fails and the process still exists.

File:
1 edited

Legend:

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

    r92885 r92886  
    353353                    # Many of the vbox processes are initially set-uid-to-root and associated debuggers are running
    354354                    # via sudo, so we might not be able to kill them unless we sudo and use /bin/kill.
    355                     utils.sudoProcessCall(['/bin/kill', '-9', '%s' % (oProcess.iPid,)]);
     355                    try:    utils.sudoProcessCall(['/bin/kill', '-9', '%s' % (oProcess.iPid,)]);
     356                    except: reporter.logXcpt();
    356357
    357358            # Check if they're all dead like they should be.
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