Skip to content

Commit

Permalink
Fix a bug in close()
Browse files Browse the repository at this point in the history
  • Loading branch information
montag451 committed Nov 27, 2012
1 parent ad08e5d commit 97f90b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytun.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ static PyObject* pytun_tuntap_close(PyObject* self)
if (tuntap->fd >= 0)
{
Py_BEGIN_ALLOW_THREADS
close(tuntap->fd);
close(tuntap->fd), tuntap->fd = -1;
Py_END_ALLOW_THREADS
}

Expand Down

0 comments on commit 97f90b2

Please sign in to comment.