mirror of https://github.com/django/django.git
Reduce the set of events that trigger a reload.
This seems to avoid multiple reloads.
This commit is contained in:
parent
8f09ec61f8
commit
47217f2f29
|
@ -144,15 +144,7 @@ def kqueue_code_changed():
|
||||||
|
|
||||||
_filter = select.KQ_FILTER_VNODE
|
_filter = select.KQ_FILTER_VNODE
|
||||||
flags = select.KQ_EV_ADD
|
flags = select.KQ_EV_ADD
|
||||||
fflags = (
|
fflags = select.KQ_NOTE_DELETE | select.KQ_NOTE_WRITE | select.KQ_NOTE_RENAME
|
||||||
select.KQ_NOTE_DELETE |
|
|
||||||
select.KQ_NOTE_WRITE |
|
|
||||||
select.KQ_NOTE_EXTEND |
|
|
||||||
select.KQ_NOTE_ATTRIB |
|
|
||||||
select.KQ_NOTE_LINK |
|
|
||||||
select.KQ_NOTE_RENAME |
|
|
||||||
select.KQ_NOTE_REVOKE
|
|
||||||
)
|
|
||||||
kevents = [select.kevent(fd, _filter, flags, fflags) for fd in fds]
|
kevents = [select.kevent(fd, _filter, flags, fflags) for fd in fds]
|
||||||
kqueue.control(kevents, 1)
|
kqueue.control(kevents, 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue