Skip to content

Commit

Permalink
try to debug failure
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 12, 2017
1 parent 2fd5679 commit f0c6cdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions psutil/_psutil_osx.c
Expand Up @@ -336,6 +336,7 @@ psutil_proc_memory_maps(PyObject *self, PyObject *args) {

err = task_for_pid(mach_task_self(), (pid_t)pid, &task);
if (err != KERN_SUCCESS) {
printf("1\n");
psutil_raise_for_pid(pid, "task_for_pid() failed");
goto error;
}
Expand Down Expand Up @@ -376,6 +377,7 @@ psutil_proc_memory_maps(PyObject *self, PyObject *args) {
errno = 0;
proc_regionfilename((pid_t)pid, address, buf, sizeof(buf));
if ((errno != 0) || ((sizeof(buf)) <= 0)) {
printf("2\n");
psutil_raise_for_pid(
pid, "proc_regionfilename() syscall failed");
goto error;
Expand Down

0 comments on commit f0c6cdb

Please sign in to comment.