diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-11-24 14:07:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-24 14:07:06 +0100 |
| commit | 34fb3666859bda349afdc9b4397b0b7a715f08de (patch) | |
| tree | 74ff50536fd2275efc945b4329482acc938d45e1 /psutil/arch/osx/process_info.c | |
| parent | 71c4f5683460e110693c976b21b06ab4034ae8a3 (diff) | |
| download | psutil-34fb3666859bda349afdc9b4397b0b7a715f08de.tar.gz | |
Arguments for NoSuchProcess and AccessDenied for the C ext (#1180)
* change NoSuchProcess and AccessDenied C exceptions signatures
* fix arg call on win
Diffstat (limited to 'psutil/arch/osx/process_info.c')
| -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 f0a01132..40c79a2c 100644 --- a/psutil/arch/osx/process_info.c +++ b/psutil/arch/osx/process_info.c @@ -144,7 +144,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(""); else PyErr_SetFromErrno(PyExc_OSError); goto error; @@ -238,7 +238,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(""); else PyErr_SetFromErrno(PyExc_OSError); goto error; @@ -338,7 +338,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(""); return -1; } return 0; |
