diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-25 18:21:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-26 09:05:38 +0100 |
commit | 392b2cf529660da75013352a4249492ac55b36e6 (patch) | |
tree | 8c04130c50d0ea11c6912b13c000d64c56e62534 /bitbake/lib/bb/server | |
parent | 1560a4b0cbb8b7ad12623635c64ce43d962e8dce (diff) | |
download | poky-392b2cf529660da75013352a4249492ac55b36e6.tar.gz |
bitbake: server/process: Use sys.executable for bitbake-server
Using sys.executable ensures we're using the same python binary for the server
as the client, which is probably advisable. "bitbake-server" is left as the process
name as its more distinctive in process listings.
(Bitbake rev: 387a339b330e8122a62a148249beb3f064dd4e3d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 74cdd3f3ea..6d936ed457 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -470,7 +470,7 @@ class BitBakeServer(object): | |||
470 | os.set_inheritable(self.bitbake_lock.fileno(), True) | 470 | os.set_inheritable(self.bitbake_lock.fileno(), True) |
471 | os.set_inheritable(self.readypipein, True) | 471 | os.set_inheritable(self.readypipein, True) |
472 | serverscript = os.path.realpath(os.path.dirname(__file__) + "/../../../bin/bitbake-server") | 472 | serverscript = os.path.realpath(os.path.dirname(__file__) + "/../../../bin/bitbake-server") |
473 | os.execl(serverscript, serverscript, "decafbad", str(self.bitbake_lock.fileno()), str(self.readypipein), self.logfile, self.bitbake_lock.name, self.sockname, str(self.server_timeout), str(self.xmlrpcinterface[0]), str(self.xmlrpcinterface[1])) | 473 | os.execl(sys.executable, "bitbake-server", serverscript, "decafbad", str(self.bitbake_lock.fileno()), str(self.readypipein), self.logfile, self.bitbake_lock.name, self.sockname, str(self.server_timeout), str(self.xmlrpcinterface[0]), str(self.xmlrpcinterface[1])) |
474 | 474 | ||
475 | def execServer(lockfd, readypipeinfd, lockname, sockname, server_timeout, xmlrpcinterface): | 475 | def execServer(lockfd, readypipeinfd, lockname, sockname, server_timeout, xmlrpcinterface): |
476 | 476 | ||