This is an archive of the discontinued LLVM Phabricator instance.

Use /proc/$$/stat instead of $PPID.
ClosedPublic

Authored by chaoren on Jul 6 2015, 11:08 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

chaoren updated this revision to Diff 29107.Jul 6 2015, 11:08 AM
chaoren retitled this revision from to Use /proc/$$/stat instead of $PPID..
chaoren updated this object.
chaoren added reviewers: ovyalov, tberghammer.
chaoren added a subscriber: lldb-commits.
chaoren updated this revision to Diff 29108.Jul 6 2015, 11:11 AM
  • Add explanatory comment.
ovyalov accepted this revision.Jul 6 2015, 11:48 AM
ovyalov edited edge metadata.

lgtm

test/tools/lldb-server/gdbremote_testcase.py
164 ↗(On Diff #29108)

As for me, it might be easier to extract ppid from /proc/$$/status if it's available in old shells - but it's up to you.

This revision is now accepted and ready to land.Jul 6 2015, 11:48 AM
This revision was automatically updated to reflect the committed changes.