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:
Daniel Malea 2013-05-30 21:48:58 +00:00
parent 42f89384f5
commit 960d738510
1 changed files with 1 additions and 1 deletions

View File

@ -1071,7 +1071,7 @@ def lldbLoggings():
raise Exception('log enable failed (check GDB_REMOTE_LOG env variable.')
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')
cmd_line = lines[1]
return cmd_line