VirtualBox

Changeset 92882 in vbox


Ignore:
Timestamp:
Dec 13, 2021 1:34:57 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148833
Message:

ValKit/common/utils.py: Read 'comm' when 'exe' is inaccessible on linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/common/utils.py

    r86919 r92882  
    11411141            sProc = '/proc/%s/' % (self.iPid,);
    11421142            if self.sImage   is None: self.sImage = noxcptReadLink(sProc + 'exe', None);
     1143            if self.sImage   is None:
     1144                self.sImage = noxcptReadFile(sProc + 'comm', None);
     1145                if self.sImage: self.sImage = self.sImage.strip();
    11431146            if self.sCwd     is None: self.sCwd   = noxcptReadLink(sProc + 'cwd', None);
    11441147            if self.asArgs   is None: self.asArgs = noxcptReadFile(sProc + 'cmdline', '').split('\x00');
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette