Skip to content

Commit

Permalink
Merge branch 'master' of github.com:giampaolo/psutil
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Nov 20, 2019
2 parents 5cb1b0b + e6faebc commit 1f8d432
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions psutil/_psutil_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,9 @@ psutil_users(PyObject *self, PyObject *args) {
struct utmp ut;
FILE *fp;

Py_BEGIN_ALLOW_THREADS
fp = fopen(_PATH_UTMP, "r");
Py_END_ALLOW_THREADS
if (fp == NULL) {
PyErr_SetFromErrnoWithFilename(PyExc_OSError, _PATH_UTMP);
goto error;
Expand Down

0 comments on commit 1f8d432

Please sign in to comment.