diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2021-10-05 19:20:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 19:20:51 +0200 |
commit | e15922b9f7f389679c73ab15ab5ac237b7c0d37f (patch) | |
tree | 22d2430de16b2f7bdd235581e30f8852f07ef0a4 /HISTORY.rst | |
parent | a02ebdedc945fedb7173edfed5ad4d6f7a04a760 (diff) | |
download | psutil-e15922b9f7f389679c73ab15ab5ac237b7c0d37f.tar.gz |
[macOS] dynamic set buffer size for process connections/fds (fixes #1901) (#1903)
Diffstat (limited to 'HISTORY.rst')
-rw-r--r-- | HISTORY.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/HISTORY.rst b/HISTORY.rst index 55c6b2b9..a8284ad2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -24,6 +24,11 @@ XXXX-XX-XX where it first finds one - 1874_: [Solaris] swap output error due to incorrect range. - 1892_: [macOS] psutil.cpu_freq() broken on Apple M1. +- 1901_: [macOS] different functions, especially process' open_files() and + connections() methods, could randomly raise AccessDenied because the internal + buffer of `proc_pidinfo(PROC_PIDLISTFDS)` syscall was not big enough. We now + dynamically increase the buffer size until it's big enough instead of giving + up and raising AccessDenied, which was a fallback to avoid crashing. - 1904_: [Windows] OpenProcess fails with ERROR_SUCCESS due to GetLastError() called after sprintf(). (patch by alxchk) - 1913_: [Linux] wait_procs seemingly ignoring timeout, TimeoutExpired thrown |