summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
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 /bitbake/lib/bb/cooker.py
parent9f6a1043f68580ed9604e750fd0f993f933bb66e (diff)
downloadpoky-e016eb10b075e280b4e78a04e47b59a173386421.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-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:
1731 1731
1732 if self.parser: 1732 if self.parser:
1733 self.parser.shutdown(clean=not force, force=force) 1733 self.parser.shutdown(clean=not force, force=force)
1734 self.notifier.stop()
1735 self.confignotifier.stop()
1734 1736
1735 def finishcommand(self): 1737 def finishcommand(self):
1736 self.state = state.initial 1738 self.state = state.initial