diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-27 01:39:48 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-27 01:39:48 +0100 |
commit | d180e25b871c314614aa96eccadb0bcc0a5df676 (patch) | |
tree | e264dd13a775a83dbd046b03391fdf2b7979bc7c /psutil/_psbsd.py | |
parent | 4faef5bc430080e66a8254e0afb8951dc1931ebf (diff) | |
download | psutil-d180e25b871c314614aa96eccadb0bcc0a5df676.tar.gz |
fix NetBSD: Process.connections() may return incomplete results if using oneshot() #1439
Diffstat (limited to 'psutil/_psbsd.py')
-rw-r--r-- | psutil/_psbsd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psutil/_psbsd.py b/psutil/_psbsd.py index 0581de29..a5c5a143 100644 --- a/psutil/_psbsd.py +++ b/psutil/_psbsd.py @@ -807,9 +807,9 @@ class Process(object): ret.append(nt) if OPENBSD: # On OpenBSD the underlying C function does not raise NSP - # in case the process is gone (and the returned list may - # incomplete). - self.name() # raise NSP if the process disappeared on us + # in case the process is gone (and the returned list may be + # incomplete). Raise NSP if the process disappeared on us. + cext.proc_name(self.pid) return ret @wrap_exceptions |