diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-03-03 22:40:12 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-03-03 22:40:12 +0100 |
commit | 95244de84f59f4793bc806196b383fbd217aa639 (patch) | |
tree | fe93d7d0c1b17b8194a283cc609edba01ed05346 /psutil/_pssunos.py | |
parent | 7a9e7969f172c80507416a0fb1df98bf72e71139 (diff) | |
download | psutil-95244de84f59f4793bc806196b383fbd217aa639.tar.gz |
fix #1447: we weren't use @wrap_exceptions around oneshot() (doh\!)
Diffstat (limited to 'psutil/_pssunos.py')
-rw-r--r-- | psutil/_pssunos.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/psutil/_pssunos.py b/psutil/_pssunos.py index 17469eac..67166e46 100644 --- a/psutil/_pssunos.py +++ b/psutil/_pssunos.py @@ -396,22 +396,22 @@ class Process(object): self._proc_basic_info.cache_deactivate(self) self._proc_cred.cache_deactivate(self) + @wrap_exceptions @memoize_when_activated def _proc_name_and_args(self): return cext.proc_name_and_args(self.pid, self._procfs_path) + @wrap_exceptions @memoize_when_activated def _proc_basic_info(self): ret = cext.proc_basic_info(self.pid, self._procfs_path) assert len(ret) == len(proc_info_map) return ret + @wrap_exceptions @memoize_when_activated def _proc_cred(self): - @wrap_exceptions - def proc_cred(self): - return cext.proc_cred(self.pid, self._procfs_path) - return proc_cred(self) + return cext.proc_cred(self.pid, self._procfs_path) @wrap_exceptions def name(self): |