generic-poky/bitbake/lib/bb
Shane Wang 984c23f7d7 runqueue: wait and deal with those <defunct> sub-processes as soon as they are os.killed() when "Force stop"
When "Force stop" is performed during the build stage, after os.kill() kills the build sub-processes, there are many <defunct> python processes in the system. In Hob, when the user initiates a new build, os.waitpid() in runqueue_process_waitpid() will be called, and the pids of those <defunct> processes will be returned as result[0], then self.build_pids[result[0]] will throw KeyError exception because now for the new build self.build_pids is empty.

This patch is to address the above issue to collect the results and handle the sub-processes as soon as they are killed.

[Yocto #2186]

(Bitbake rev: e9f4ca467e795bbc520d12b0e7a5985b6ff0a20e)

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-30 17:20:21 +01:00
..
fetch2 bitbake/fetch2: Ensure mirror tarballs have .done stamps so we don't redownload and corrupt them 2012-03-23 14:54:16 +00:00
parse parse/ast: Expand inherit statements before splitting them 2012-03-15 22:56:16 +00:00
pysh make exception handling syntax consistent 2011-06-15 11:13:13 +01:00
server bitbake: Add client socket info for BitBakeServerConnection 2012-02-23 22:52:16 +00:00
ui lib/bb/ui/crumbs/hoblistmodel: fix sorting of RecipeListModel 2012-03-30 17:20:20 +01:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
__init__.py bitbake: Drop fetch v1, v2 provides a much better codebase to build from 2012-03-05 10:38:01 -08:00
build.py bb.build: use relative log links, not absolute 2012-03-29 09:44:45 +01:00
cache.py bitbake: change for adding progress bar in Hob2. 2012-02-23 22:52:17 +00:00
cache_extra.py bitbake: Add description into the cache and clean up cache duplication 2012-02-02 16:55:28 +00:00
codeparser.py codeparser: Call intern over the set contents for better cache performance 2012-03-12 15:52:33 +00:00
command.py command.py: Move triggerEvent to command async class 2012-03-29 21:25:53 +01:00
compat.py bitbake: Add missing file 2011-05-07 08:49:28 +01:00
cooker.py cooker: add inherit information when generating package tree 2012-03-22 14:40:40 +00:00
daemonize.py Apply some 2to3 transforms that don't cause issues in 2.6 2010-07-02 15:41:33 +01:00
data.py data/runqueue.py: Fix commented out test code after variable name changes 2012-01-27 09:40:05 +00:00
data_smart.py meta/classes: Convert to use appendVar and appendVarFlags 2012-03-05 10:36:53 -08:00
event.py bitbake: change for adding progress bar in Hob2. 2012-02-23 22:52:17 +00:00
exceptions.py bb.exceptions: don't choke on frames without arguments 2011-06-08 20:38:25 +01:00
methodpool.py Consolidate the exec/eval bits, switch anonfunc to better_exec, etc 2010-07-02 15:41:31 +01:00
monitordisk.py meta/classes: Convert to use appendVar and appendVarFlags 2012-03-05 10:36:53 -08:00
msg.py bitbake: implement BB_VERBOSE_LOGS 2012-02-28 13:47:10 +00:00
namedtuple_with_abc.py bb.namedtuple_with_abc: add useful util from activestate 2011-06-08 20:38:23 +01:00
persist_data.py persist_data: survive if sqlite3 couldn't enable the shared cache 2012-02-22 20:25:29 +00:00
process.py make exception handling syntax consistent 2011-06-15 11:13:13 +01:00
providers.py meta/classes: Convert to use appendVar and appendVarFlags 2012-03-05 10:36:53 -08:00
runqueue.py runqueue: wait and deal with those <defunct> sub-processes as soon as they are os.killed() when "Force stop" 2012-03-30 17:20:21 +01:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py siggen.py: Use basehash if no taskhash 2012-03-12 02:26:23 +00:00
taskdata.py taskdata: fix string formatting of an error message 2011-09-20 22:22:21 +01:00
utils.py utils: Add split_version function for splitting a version into its components 2012-03-20 15:21:36 +00:00