Skip to contentSkip to conversation

bb/cooker: BBCooker stops notifier at shutdown

PATCH New Aníbal Limón 1 participant 1 message Jan 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bb/cooker: BBCooker stops notifier at shutdown

At end of BBCooker needs to release fd's associated with pyinotify watchers to avoid: Too many open files (EMFILE) error in different scenarios like several instances of tinfoil.

[YOCTO #10873]

---
 lib/bb/cooker.py | 2 ++
 1 file changed, 2 insertions(+)
lib/bb/cooker.py +2 -0
index 30131fb..182d044 100644
@@ -1731,6 +1731,8 @@ class BBCooker:
 
         if self.parser:
             self.parser.shutdown(clean=not force, force=force)
+        self.notifier.stop()
+        self.confignotifier.stop()
 
     def finishcommand(self):
         self.state = state.initial
Signature · 1 line
2.1.4