generic-poky/bitbake/lib/bb
Ed Bartosh b58e5b1fb3 bitbake: bitbake: xmlrpc: set single use mode differently
Currently xmlrpc server implicitly sets itself into single use mode
when bitbake server is started with anonymous port (0) or no port is
provided in command line. In this mode bitbake shuts down xmlrpc server
after build is done. This assumption is incorrect in some cases.
For example Toaster uses bitbake in this mode and expects xmlrpc server
to stay in memory.

Till recent changes single use mode was always unset due to the bug.
When the bug was fixed it broke toaster builds as Toaster couldn't
communicate with bitbake server in single use mode.

Reimplemented logic of setting single use mode. The mode is explicity
set when --server-only command line parameter is not provided to bitbake.
It doesn't depend on the port number anymore.

[YOCTO #9275]
[YOCTO #9240]
[YOCTO #9252]

(Bitbake rev: afc0dd5c532684f6201b1e12bbf4c226ea19062d)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-03-24 12:31:50 +00:00
..
fetch2 bitbake: cache: Make BB_DONT_CACHE variable external 2016-03-23 17:54:41 +00:00
parse bitbake: BBHandler/ast: Merge handMethod and handleMethodFlags 2016-02-10 13:32:46 +00:00
pysh bitbake: lib: fix no newline at end of file 2014-07-04 09:28:36 +01:00
server bitbake: bitbake: xmlrpc: set single use mode differently 2016-03-24 12:31:50 +00:00
tests bitbake: bb/tests/fetch: Update cups url 2016-03-21 12:43:12 +00:00
ui bitbake: toasterui: remove ParseStarted from the event list 2016-03-23 17:56:16 +00:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
__init__.py bitbake: Move bb.{debug,note,..} into their own logging domain 2016-02-16 09:04:23 +00:00
build.py bitbake: build: Improve python execution tracebacks 2016-02-10 15:47:11 +00:00
cache.py bitbake: cache: Make BB_DONT_CACHE variable external 2016-03-23 17:54:41 +00:00
cache_extra.py bitbake: bitbake: cooker: get extra information from recipe cache 2013-09-22 12:19:44 +01:00
checksum.py bitbake: FileChecksumCache: add get_checksums() method 2016-02-18 07:41:16 +00:00
codeparser.py bitbake: bb/cache: drop some unused arguments 2016-02-18 07:41:15 +00:00
command.py bitbake: command: make setEventMask readonly 2016-03-07 17:23:04 +00:00
compat.py bitbake: compat/server/utils: Jettison pre python 2.7.3 workarounds 2013-06-14 17:26:30 +01:00
cooker.py bitbake: bb/cache: drop some unused arguments 2016-02-18 07:41:15 +00:00
cookerdata.py bitbake: main/runqueue: Add --setscene-only option to bitbake 2016-01-11 23:26:32 +00:00
daemonize.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
data.py bitbake: build/data: Don't expand python functions before execution [API change] 2016-02-10 15:47:11 +00:00
data_smart.py bitbake: data_smart: Drop default expand=False to getVarFlag [API change] 2016-02-18 07:48:00 +00:00
event.py bitbake: event/utils/methodpool: Add a cache of compiled code objects 2015-12-22 00:02:05 +00:00
exceptions.py bitbake/exceptions: Handle reports from the field of exception code failures 2012-05-25 11:15:12 +01:00
main.py bitbake: bitbake: xmlrpc: set single use mode differently 2016-03-24 12:31:50 +00:00
methodpool.py bitbake: event/utils/methodpool: Add a cache of compiled code objects 2015-12-22 00:02:05 +00:00
monitordisk.py bitbake: monitordisk: don't log when not monitoring a filesystem for inodes 2014-09-29 12:08:48 +01:00
msg.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
namedtuple_with_abc.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
persist_data.py bitbake: persist_data: Avoid fsync() calls 2014-05-03 11:24:48 +01:00
process.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
providers.py bitbake: providers: Fix PREFERRED_VERSION lookup for '_' in PN 2016-02-28 11:34:38 +00:00
runqueue.py bitbake: bb/runqueue: save task file dependency cache onto disk 2016-02-18 07:41:16 +00:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py bitbake: SignatureGeneratorBasic: make checksum cache file configurable 2016-02-18 07:41:16 +00:00
taskdata.py bitbake: taskdata: Fix traceback issue with missing provider 2016-02-15 16:48:12 +00:00
tinfoil.py bitbake: tinfoil: remove logging handler at shutdown 2015-09-23 22:44:56 +01:00
utils.py bitbake: utils.py: Add sha1_file call 2016-02-26 17:20:05 +00:00