From 851777664d77eb998190336bebc5683f04031a5f Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 16 Mar 2015 15:23:51 +0100 Subject: [PATCH] Stop the old notifier on Reload This fixes react from leaking inotify file descriptors (instances and its watches), which leads to (global) "No space left on device (ENOSPC)" errors in the long run. --- react.py | 1 + 1 file changed, 1 insertion(+) diff --git a/react.py b/react.py index 97f3135..80765cc 100755 --- a/react.py +++ b/react.py @@ -65,6 +65,7 @@ def process_IN_CLOSE_WRITE(self, event): if notifier.check_events(): notifier.read_events() except Reload: + notifier.stop() pass except KeyboardInterrupt: notifier.stop()