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/_psosx.py | |
parent | 7a9e7969f172c80507416a0fb1df98bf72e71139 (diff) | |
download | psutil-95244de84f59f4793bc806196b383fbd217aa639.tar.gz |
fix #1447: we weren't use @wrap_exceptions around oneshot() (doh\!)
Diffstat (limited to 'psutil/_psosx.py')
-rw-r--r-- | psutil/_psosx.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psutil/_psosx.py b/psutil/_psosx.py index 20c05612..7459a0f3 100644 --- a/psutil/_psosx.py +++ b/psutil/_psosx.py @@ -384,6 +384,7 @@ class Process(object): self._name = None self._ppid = None + @wrap_exceptions @memoize_when_activated def _get_kinfo_proc(self): # Note: should work with all PIDs without permission issues. @@ -391,6 +392,7 @@ class Process(object): assert len(ret) == len(kinfo_proc_map) return ret + @wrap_exceptions @memoize_when_activated def _get_pidtaskinfo(self): # Note: should work for PIDs owned by user only. |