summaryrefslogtreecommitdiffstats
path: root/meta/classes
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-07-09 10:53:56 +0100
commitb0c40a9c1b335fc2a956fc1880a613e97d12938f (patch)
tree703a869999173534b49acc7c34bfc09cf26fd75b /meta/classes
parentf0b927882cf8911eb1cff83e2afa6198143890b0 (diff)
downloadpoky-b0c40a9c1b335fc2a956fc1880a613e97d12938f.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 master rev: 89c8493d4d85044cd72af2756569d15e87cd5947) (From OE-Core rev: e887858d495d772a4b2cd6ca4edc0c53942518d8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 affa34e808..551cafc51a 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -897,7 +897,7 @@ python split_and_strip_files () {
897 import multiprocessing 897 import multiprocessing
898 nproc = multiprocessing.cpu_count() 898 nproc = multiprocessing.cpu_count()
899 pool = bb.utils.multiprocessingpool(nproc) 899 pool = bb.utils.multiprocessingpool(nproc)
900 processed = pool.imap(oe.package.runstrip, sfiles) 900 processed = list(pool.imap(oe.package.runstrip, sfiles))
901 pool.close() 901 pool.close()
902 pool.join() 902 pool.join()
903 903
@@ -1249,7 +1249,7 @@ python package_do_filedeps() {
1249 import multiprocessing 1249 import multiprocessing
1250 nproc = multiprocessing.cpu_count() 1250 nproc = multiprocessing.cpu_count()
1251 pool = bb.utils.multiprocessingpool(nproc) 1251 pool = bb.utils.multiprocessingpool(nproc)
1252 processed = pool.imap(oe.package.filedeprunner, pkglist) 1252 processed = list(pool.imap(oe.package.filedeprunner, pkglist))
1253 pool.close() 1253 pool.close()
1254 pool.join() 1254 pool.join()
1255 1255