From 238a6075e611bad1873a0fa86dc553251506c85a Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 20 Jan 2025 14:42:38 +0100 Subject: Source-tree service: accept lock reference ... so that tagging in the associated git root can be synchronized with other services provided by just serve. --- src/buildtool/main/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/buildtool/main/main.cpp') 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( -- cgit v1.2.3