Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 5, 2016
1 parent ae0143b commit 8dfc2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psutil/_psutil_osx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ psutil_proc_open_files(PyObject *self, PyObject *args) {
free(fds_pointer);
if (errno != 0)
return PyErr_SetFromErrno(PyExc_OSError);
else if (! psutil_pid_exists(pid))
else if (psutil_pid_exists(pid) == 0)
return NoSuchProcess();
else
return NULL; // exception has already been set earlier
Expand Down

0 comments on commit 8dfc2d0

Please sign in to comment.