Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2016 from loic/ticket21545

Fixed #21545 -- autoreload kqueue events weren't cleared which caused an infinite loop.
  • Loading branch information...
commit 643180b5d253e2cbc9cfccccafa5b1e35dcf5583 2 parents b8be305 + 9ccde8c
Aymeric Augustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/autoreload.py
2  django/utils/autoreload.py
View
@@ -172,7 +172,7 @@ def kqueue_code_changed():
# Utility function to create kevents.
_filter = select.KQ_FILTER_VNODE
- flags = select.KQ_EV_ADD
+ flags = select.KQ_EV_ADD | select.KQ_EV_CLEAR
fflags = select.KQ_NOTE_DELETE | select.KQ_NOTE_WRITE | select.KQ_NOTE_RENAME
def make_kevent(descriptor):
Please sign in to comment.
Something went wrong with that request. Please try again.