forked from OSchip/llvm-project
Find 'ps' command using which() rather than invoking directly
- should address Debian test errors due to not being able to 'ps' directly llvm-svn: 182965
This commit is contained in:
parent
42f89384f5
commit
960d738510
|
@ -1071,7 +1071,7 @@ def lldbLoggings():
|
||||||
raise Exception('log enable failed (check GDB_REMOTE_LOG env variable.')
|
raise Exception('log enable failed (check GDB_REMOTE_LOG env variable.')
|
||||||
|
|
||||||
def getMyCommandLine():
|
def getMyCommandLine():
|
||||||
ps = subprocess.Popen(['ps', '-o', "command=CMD", str(os.getpid())], stdout=subprocess.PIPE).communicate()[0]
|
ps = subprocess.Popen([which('ps'), '-o', "command=CMD", str(os.getpid())], stdout=subprocess.PIPE).communicate()[0]
|
||||||
lines = ps.split('\n')
|
lines = ps.split('\n')
|
||||||
cmd_line = lines[1]
|
cmd_line = lines[1]
|
||||||
return cmd_line
|
return cmd_line
|
||||||
|
|
Loading…
Reference in New Issue