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/arch/osx | |
| parent | bab3a310ab561bfdd01d44b1d2121daac7469e8f (diff) | |
| download | psutil-5140642a7ac95889222cbcc2a8118ca803f0ae3d.tar.gz | |
print/set syscall origin when raising NSP or AD
Diffstat (limited to 'psutil/arch/osx')
| -rw-r--r-- | psutil/arch/osx/process_info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psutil/arch/osx/process_info.c b/psutil/arch/osx/process_info.c index 9877fd6b..47cf864f 100644 --- a/psutil/arch/osx/process_info.c +++ b/psutil/arch/osx/process_info.c @@ -167,7 +167,7 @@ psutil_get_cmdline(long pid) { // In case of zombie process we'll get EINVAL. We translate it // to NSP and _psosx.py will translate it to ZP. if ((errno == EINVAL) && (psutil_pid_exists(pid))) - NoSuchProcess(""); + NoSuchProcess("sysctl"); else PyErr_SetFromErrno(PyExc_OSError); goto error; @@ -259,7 +259,7 @@ psutil_get_environ(long pid) { // In case of zombie process we'll get EINVAL. We translate it // to NSP and _psosx.py will translate it to ZP. if ((errno == EINVAL) && (psutil_pid_exists(pid))) - NoSuchProcess(""); + NoSuchProcess("sysctl"); else PyErr_SetFromErrno(PyExc_OSError); goto error; @@ -359,7 +359,7 @@ psutil_get_kinfo_proc(long pid, struct kinfo_proc *kp) { // sysctl succeeds but len is zero, happens when process has gone away if (len == 0) { - NoSuchProcess(""); + NoSuchProcess("sysctl (len == 0)"); return -1; } return 0; |
