diff options
author | Bruno Binet <bruno.binet@gmail.com> | 2015-01-14 13:08:13 +0100 |
---|---|---|
committer | Bruno Binet <bruno.binet@gmail.com> | 2015-01-20 08:33:16 +0100 |
commit | e367ce4afce6c84a03cceaf44b871310f78e0905 (patch) | |
tree | 331db56b3e9b9733aefee964ac5ab1dfee591a91 | |
parent | 27bdffae7e8124f5fbb985dc53fa815dd8e29659 (diff) | |
download | psutil-e367ce4afce6c84a03cceaf44b871310f78e0905.tar.gz |
Don't raise exception if sockets refer to multiple inodes
fix #572
-rw-r--r-- | psutil/_pslinux.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py index 3bf062b1..6bde29eb 100644 --- a/psutil/_pslinux.py +++ b/psutil/_pslinux.py @@ -446,12 +446,12 @@ class Connections: _, laddr, raddr, status, _, _, _, _, _, inode = \ line.split()[:10] if inode in inodes: - # We assume inet sockets are unique, so we error - # out if there are multiple references to the - # same inode. We won't do this for UNIX sockets. - if len(inodes[inode]) > 1 and family != socket.AF_UNIX: - raise ValueError("ambiguos inode with multiple " - "PIDs references") + # # We assume inet sockets are unique, so we error + # # out if there are multiple references to the + # # same inode. We won't do this for UNIX sockets. + # if len(inodes[inode]) > 1 and family != socket.AF_UNIX: + # raise ValueError("ambiguos inode with multiple " + # "PIDs references") pid, fd = inodes[inode][0] else: pid, fd = None, -1 |