summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-30 12:28:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-28 10:01:27 +0100
commit1cc028840dda6b471e79ab4a701543e313977c53 (patch)
treec7f8c24695294df3a19b0a68756faaa6177872b8 /meta
parent09a4af20aef12be8f221f3d50781cbcefc322846 (diff)
downloadpoky-1cc028840dda6b471e79ab4a701543e313977c53.tar.gz
package: Ensure we iterate all the pool objects
There is the possibility that if we don't iterate through the multiprocessing pool objects we might not catch return codes and this could lead to hung/zombie processes either temproarily or on a wider scale. Adding this certainly doesn't hurt anything and is better practise so we might as well do it. Its not 100% clear if this fixes some issues or not. (From OE-Core rev: 89c8493d4d85044cd72af2756569d15e87cd5947) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index f25f5671e5..8e6029a0a3 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -906,7 +906,7 @@ python split_and_strip_files () {
906 import multiprocessing 906 import multiprocessing
907 nproc = multiprocessing.cpu_count() 907 nproc = multiprocessing.cpu_count()
908 pool = bb.utils.multiprocessingpool(nproc) 908 pool = bb.utils.multiprocessingpool(nproc)
909 processed = pool.imap(oe.package.runstrip, sfiles) 909 processed = list(pool.imap(oe.package.runstrip, sfiles))
910 pool.close() 910 pool.close()
911 pool.join() 911 pool.join()
912 912
@@ -1265,7 +1265,7 @@ python package_do_filedeps() {
1265 import multiprocessing 1265 import multiprocessing
1266 nproc = multiprocessing.cpu_count() 1266 nproc = multiprocessing.cpu_count()
1267 pool = bb.utils.multiprocessingpool(nproc) 1267 pool = bb.utils.multiprocessingpool(nproc)
1268 processed = pool.imap(oe.package.filedeprunner, pkglist) 1268 processed = list(pool.imap(oe.package.filedeprunner, pkglist))
1269 pool.close() 1269 pool.close()
1270 pool.join() 1270 pool.join()
1271 1271