VirtualBox

Ignore:
Timestamp:
Aug 12, 2021 7:37:31 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146256
Message:

Audio/ValKit: Don't use killall but grep'ing ps instead, as older Debians don't have killall out-of-the-box. Also should work on macOS [build fix]. ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py

    r90643 r90644  
    214214            os.system('taskkill /IM "%s.exe" /F' % (sProcName));
    215215        else: # Note: killall is not available on older Debians (requires psmisc).
    216             procPs = subprocess.Popen(['ps', 'ax'], stdout=subprocess.PIPE); # Using the BSD syntax here; MacOS also should understand this.
     216            # Using the BSD syntax here; MacOS also should understand this.
     217            procPs = subprocess.Popen(['ps', 'ax'], stdout=subprocess.PIPE);
    217218            out, _ = procPs.communicate();
    218219            for sLine in out.decode("utf-8").splitlines():
     
    220221                    pid = int(sLine.split(None, 1)[0]);
    221222                    reporter.log2('Killing PID %d' % (pid,));
    222                     os.kill(pid, signal.SIGKILL);
     223                    os.kill(pid, signal.SIGKILL); # pylint: disable=no-member
    223224
    224225    def killHstVkat(self):
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