diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-14 03:09:25 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-14 03:09:25 -0800 |
commit | 5140642a7ac95889222cbcc2a8118ca803f0ae3d (patch) | |
tree | 5b67381b9fa501f0a135234418b8ed0344cdb462 /psutil/_psutil_posix.c | |
parent | bab3a310ab561bfdd01d44b1d2121daac7469e8f (diff) | |
download | psutil-5140642a7ac95889222cbcc2a8118ca803f0ae3d.tar.gz |
print/set syscall origin when raising NSP or AD
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 aa600849..7fbdcc48 100644 --- a/psutil/_psutil_posix.c +++ b/psutil/_psutil_posix.c @@ -122,7 +122,7 @@ psutil_raise_for_pid(long pid, char *syscall_name) { else if (psutil_pid_exists(pid) == 0) { psutil_debug("%s syscall failed and PID %i no longer exists; " "assume NoSuchProcess", syscall_name, pid); - NoSuchProcess(""); + NoSuchProcess("psutil_pid_exists"); } else { PyErr_Format(PyExc_RuntimeError, "%s syscall failed", syscall_name); |