nikademus79 / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Process.get_connections() add UNIX socket support #216

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On all UNIX systems Process.get_connections() should also return information 
about UNIX sockets opened by process.
Example:

>>> p.get_connections()
[connection(fd=115, family=1, type=1, local_address=('/foo/bar/conn.sock', 
None), remote_address=(), status='')

As an extra note, get_connections() might grow an extra argument of some sort 
(a list) to filter results for socket family types (AF_INET, AF_INET6, AF_UNIX).

Original issue reported on code.google.com by g.rodola on 4 Oct 2011 at 10:28

GoogleCodeExporter commented 8 years ago
Linux patch with partial tests in attachment.

Original comment by g.rodola on 9 Nov 2011 at 7:36

Attachments:

GoogleCodeExporter commented 8 years ago
Updated Linux patch.

Original comment by g.rodola on 17 Apr 2012 at 2:05

Attachments:

GoogleCodeExporter commented 8 years ago
Committed in r1416, r1417, r1418.

Original comment by g.rodola on 7 Jul 2012 at 6:37

GoogleCodeExporter commented 8 years ago
Fixed in version 0.6.0, released just now.

Original comment by g.rodola on 13 Aug 2012 at 4:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r1416 == revision d53078961baa

Original comment by g.rodola on 2 Mar 2013 at 12:04