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 /psutil/_psutil_posix.c | |
parent | a02ebdedc945fedb7173edfed5ad4d6f7a04a760 (diff) | |
download | psutil-e15922b9f7f389679c73ab15ab5ac237b7c0d37f.tar.gz |
[macOS] dynamic set buffer size for process connections/fds (fixes #1901) (#1903)
Diffstat (limited to 'psutil/_psutil_posix.c')
-rw-r--r-- | psutil/_psutil_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_psutil_posix.c b/psutil/_psutil_posix.c index 305cec76..7c0d548c 100644 --- a/psutil/_psutil_posix.c +++ b/psutil/_psutil_posix.c @@ -147,7 +147,7 @@ psutil_pid_exists(pid_t pid) { */ void psutil_raise_for_pid(long pid, char *syscall) { - if (errno != 0) // unlikely + if (errno != 0) PyErr_SetFromOSErrnoWithSyscall(syscall); else if (psutil_pid_exists(pid) == 0) NoSuchProcess(syscall); |