]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: bb/cooker: BBCooker stops notifier at shutdown
authorAníbal Limón <anibal.limon@linux.intel.com>
Thu, 5 Jan 2017 23:44:46 +0000 (17:44 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Jan 2017 00:01:07 +0000 (00:01 +0000)
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>
bitbake/lib/bb/cooker.py

index 30131fb4781a82e93777cf687e7a33c5d60caf8f..182d0449e63e48cd9abe6da12c0e45cf33a3218e 100644 (file)
@@ -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