summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2013-11-25 15:21:26 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-02 17:32:40 +0000
commitb1803958de8d7c3c3279841e38604a08dc2316cc (patch)
treec1db3c1ecfba44ba038dc803ad5e75d62e59d93e /bin
parentd6abc07ff385357d312d8435b89e0a9c1f965433 (diff)
downloadbitbake-contrib-b1803958de8d7c3c3279841e38604a08dc2316cc.tar.gz
bitbake.lock: Add host:port to bitbake.lock for memres server
The idea is to build on the --status-only option for bitbake and expose a mechanism where the oe init scripts can easily switch between memres server and the non-memres server. In the case of the standard oe init script the following can shut down the server: if [ -z "$BBSERVER" ] && [ -f bitbake.lock ] ; then grep ":" bitbake.lock > /dev/null && BBSERVER=`cat bitbake.lock` bitbake --status-only if [ $? = 0 ] ; then echo "Shutting down bitbake memory resident server with bitbake -m" BBSERVER=`cat bitbake.lock` bitbake -m fi fi A similar function can be used to automatically detect if the server is already running for the oe memres init script. This new functionality allows for the memres init script to be started in a new shell and connect up to an alaready running server without seeing the error of trying to start the server multiple times. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bitbake b/bin/bitbake
index a0a2baa4b..5857b9242 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -208,8 +208,10 @@ def start_server(servermodule, configParams, configuration):
if configParams.bind:
(host, port) = configParams.bind.split(':')
server.initServer((host, int(port)))
+ configuration.interface = [ server.serverImpl.host, server.serverImpl.port ]
else:
server.initServer()
+ configuration.interface = []
try:
configuration.setServerRegIdleCallback(server.getServerIdleCB())