diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-01-05 17:44:46 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-06 00:01:03 +0000 |
commit | ae6045b84978940c365c95c33d6996359c3e299d (patch) | |
tree | df43e21a233b0890cad28933feb77339aef9cd85 | |
parent | 26243f04e3af652291d13e85c084057104fe155b (diff) | |
download | openembedded-core-contrib-ae6045b84978940c365c95c33d6996359c3e299d.tar.gz |
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 <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/cooker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 30131fb478..182d0449e6 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 |