From 9ccde8cfafda03c961343b4523ac035428c4ff25 Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Tue, 3 Dec 2013 00:12:04 +0700 Subject: [PATCH] Fixed #21545 -- autoreload kqueue events weren't cleared which caused an infinite loop. --- django/utils/autoreload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 4b0a97f12b..3c71fa2dbe 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -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):