diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-02 00:56:21 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-02 00:56:21 +0200 |
| commit | 3cb16ddf6b50037310a99d5c5eed555db7610732 (patch) | |
| tree | d58a9aaded79aa4fb3dd33f3104a0a934f7c9110 /psutil/_pslinux.py | |
| parent | ece4be8ff929ed405160700e976c5f54b20e8e47 (diff) | |
| download | psutil-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.py | 5 |
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) |
