summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruser <user@users-virtualbox.local>2015-02-12 18:37:24 +0100
committeruser <user@users-virtualbox.local>2015-02-12 18:37:24 +0100
commit0d9d291e9996d03138eb4b28ad58e2125c81d01e (patch)
tree989a9c3884c7dcea921a14eebf6a5fcd7b3d8664
parent029f05154f373e934586d7ca9f1c2b11f0c0dffe (diff)
downloadpsutil-0d9d291e9996d03138eb4b28ad58e2125c81d01e.tar.gz
update doc
-rw-r--r--docs/index.rst1
-rw-r--r--psutil/__init__.py2
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)