diff options
author | user <user@users-virtualbox.local> | 2015-02-12 18:37:24 +0100 |
---|---|---|
committer | user <user@users-virtualbox.local> | 2015-02-12 18:37:24 +0100 |
commit | 0d9d291e9996d03138eb4b28ad58e2125c81d01e (patch) | |
tree | 989a9c3884c7dcea921a14eebf6a5fcd7b3d8664 | |
parent | 029f05154f373e934586d7ca9f1c2b11f0c0dffe (diff) | |
download | psutil-0d9d291e9996d03138eb4b28ad58e2125c81d01e.tar.gz |
update doc
-rw-r--r-- | docs/index.rst | 1 | ||||
-rw-r--r-- | psutil/__init__.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst index e4c36afa..b73c6eaa 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -383,6 +383,7 @@ Network | "all" | the sum of all the possible families and protocols | +----------------+-----------------------------------------------------+ + On OSX this function requires root privileges. To get per-process connections use :meth:`Process.connections`. Also, see `netstat.py sample script <https://github.com/giampaolo/psutil/blob/master/examples/netstat.py>`__. diff --git a/psutil/__init__.py b/psutil/__init__.py index ecc936d4..8782eac9 100644 --- a/psutil/__init__.py +++ b/psutil/__init__.py @@ -1812,6 +1812,8 @@ def net_connections(kind='inet'): udp6 UDP over IPv6 unix UNIX socket (both UDP and TCP protocols) all the sum of all the possible families and protocols + + On OSX this function requires root privileges. """ return _psplatform.net_connections(kind) |