summaryrefslogtreecommitdiff
path: root/psutil/_pslinux.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-05-02 00:56:21 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-05-02 00:56:21 +0200
commit3cb16ddf6b50037310a99d5c5eed555db7610732 (patch)
treed58a9aaded79aa4fb3dd33f3104a0a934f7c9110 /psutil/_pslinux.py
parentece4be8ff929ed405160700e976c5f54b20e8e47 (diff)
downloadpsutil-3cb16ddf6b50037310a99d5c5eed555db7610732.tar.gz
#1039 / connections('unix') / linux: set laddr and raddr to an empty string instead of None
Diffstat (limited to 'psutil/_pslinux.py')
-rw-r--r--psutil/_pslinux.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index c0ccb466..1a890a87 100644
--- a/psutil/_pslinux.py
+++ b/psutil/_pslinux.py
@@ -898,7 +898,10 @@ class Connections:
else:
path = ""
type_ = int(type_)
- raddr = None
+ # XXX: determining the remote endpoint of a
+ # UNIX socket on Linux is not possible, see:
+ # https://serverfault.com/questions/252723/
+ raddr = ""
status = _common.CONN_NONE
yield (fd, family, type_, path, raddr, status, pid)