From: Aníbal Limón Date: Thu, 5 Jan 2017 23:44:46 +0000 (-0600) Subject: bb/cooker: BBCooker stops notifier at shutdown X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae6045b84978940c365c95c33d6996359c3e299d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 30131fb4781..182d0449e63 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -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