diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-01-20 14:42:38 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-01-22 10:15:56 +0100 |
commit | 238a6075e611bad1873a0fa86dc553251506c85a (patch) | |
tree | e86fc12f88c1de9a77810dbb1d56cd9f050cc921 /src/buildtool/main/main.cpp | |
parent | 1152bd6ad7176f5d53a4ae214f463431b5396f65 (diff) | |
download | justbuild-238a6075e611bad1873a0fa86dc553251506c85a.tar.gz |
Source-tree service: accept lock reference
... so that tagging in the associated git root can be synchronized
with other services provided by just serve.
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r-- | src/buildtool/main/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 5f06cbad..72a5b060 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -843,11 +843,13 @@ auto main(int argc, char* argv[]) -> int { } if (arguments.cmd == SubCommand::kServe) { + std::mutex lock{}; auto serve_server = ServeServerImpl::Create(arguments.service.interface, arguments.service.port, arguments.service.info_file, - arguments.service.pid_file); + arguments.service.pid_file, + &lock); if (serve_server) { // Set up remote execution config. auto remote_exec_config = CreateRemoteExecutionConfig( |