Skip to content

Commit

Permalink
set ppid
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Apr 30, 2016
1 parent c0ac3f7 commit 1272150
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion psutil/_psbsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ def terminal(self):

@wrap_exceptions
def ppid(self):
return cext.proc_ppid(self.pid)
self._ppid = cext.proc_ppid(self.pid)
return self._ppid

@wrap_exceptions
def uids(self):
Expand Down
3 changes: 2 additions & 1 deletion psutil/_psosx.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ def environ(self):

@wrap_exceptions
def ppid(self):
return cext.proc_ppid(self.pid)
self._ppid = cext.proc_ppid(self.pid)
return self._ppid

@wrap_exceptions
def cwd(self):
Expand Down
3 changes: 2 additions & 1 deletion psutil/_pssunos.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ def nice_set(self, value):

@wrap_exceptions
def ppid(self):
return cext.proc_basic_info(self.pid, self._procfs_path)[0]
self._ppid = cext.proc_basic_info(self.pid, self._procfs_path)[0]
return self._ppid

@wrap_exceptions
def uids(self):
Expand Down

0 comments on commit 1272150

Please sign in to comment.