summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-01-05 17:44:46 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-06 00:01:07 +0000
commite016eb10b075e280b4e78a04e47b59a173386421 (patch)
tree7b3237d9dad74d57b2298d12619a129ab64da678
parent9f6a1043f68580ed9604e750fd0f993f933bb66e (diff)
downloadopenembedded-core-contrib-e016eb10b075e280b4e78a04e47b59a173386421.tar.gz
openembedded-core-contrib-e016eb10b075e280b4e78a04e47b59a173386421.tar.bz2
openembedded-core-contrib-e016eb10b075e280b4e78a04e47b59a173386421.zip
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 <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 30131fb478..182d0449e6 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