mirror of https://github.com/django/django.git
Merge pull request #2016 from loic/ticket21545
Fixed #21545 -- autoreload kqueue events weren't cleared which caused an infinite loop.
This commit is contained in:
commit
643180b5d2
|
@ -172,7 +172,7 @@ def kqueue_code_changed():
|
||||||
|
|
||||||
# Utility function to create kevents.
|
# Utility function to create kevents.
|
||||||
_filter = select.KQ_FILTER_VNODE
|
_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
|
fflags = select.KQ_NOTE_DELETE | select.KQ_NOTE_WRITE | select.KQ_NOTE_RENAME
|
||||||
|
|
||||||
def make_kevent(descriptor):
|
def make_kevent(descriptor):
|
||||||
|
|
Loading…
Reference in New Issue