diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-11-15 00:27:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-15 00:27:05 +0100 |
commit | 8fc5ed1b20c9c9fab75164aae1984698a46974dc (patch) | |
tree | d588d132137ce6b47c34ccc8c59117d2e75cb0b4 /psutil/_psutil_windows.c | |
parent | fd69f22ee5ca38ceff32ae3fac15420c5d8fce29 (diff) | |
download | psutil-8fc5ed1b20c9c9fab75164aae1984698a46974dc.tar.gz |
Rewrite Linux prlimit() with ctypes (Linux wheels) (#1879)
Diffstat (limited to 'psutil/_psutil_windows.c')
-rw-r--r-- | psutil/_psutil_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_psutil_windows.c b/psutil/_psutil_windows.c index c8b2f383..b836d708 100644 --- a/psutil/_psutil_windows.c +++ b/psutil/_psutil_windows.c @@ -211,7 +211,7 @@ psutil_proc_wait(PyObject *self, PyObject *args) { Py_RETURN_NONE; } else { - PyErr_SetFromWindowsErr(0); + PyErr_SetFromOSErrnoWithSyscall("OpenProcess"); return NULL; } } |