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