summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2015-06-14 16:24:00 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2015-06-14 16:24:00 +0200
commitee41e18a75f4a8a88dd1cc4e19ca27cb03c081d5 (patch)
treeb850b48586a1b46efd32bd5ecfa1aea4e91837ca
parentdf814951714d0c898551e9ce87dff84bf7f1c117 (diff)
downloadpsutil-ee41e18a75f4a8a88dd1cc4e19ca27cb03c081d5.tar.gz
fix failing test on OSX
-rw-r--r--psutil/arch/osx/process_info.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/psutil/arch/osx/process_info.c b/psutil/arch/osx/process_info.c
index cb240344..1dd1e6ba 100644
--- a/psutil/arch/osx/process_info.c
+++ b/psutil/arch/osx/process_info.c
@@ -38,6 +38,10 @@ psutil_pid_exists(long pid) {
if (ret == 0)
return 1;
else {
+ return 0;
+ /*
+ // This is how it is handled on other POSIX systems but it causes
+ // test_halfway_terminated test to fail with AccessDenied.
if (ret == ESRCH)
return 0;
else if (ret == EPERM)
@@ -46,6 +50,7 @@ psutil_pid_exists(long pid) {
PyErr_SetFromErrno(PyExc_OSError);
return -1;
}
+ */
}
}