From c80c389d7119eb87d2e0787df6c30fb36f27e2fa Mon Sep 17 00:00:00 2001 From: Arvid Jakobsson Date: Sun, 4 Feb 2024 13:47:28 +0100 Subject: [PATCH 1/6] [commands::run_server_process]: fix race condition --- src/commands.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index e4b9a6a85..b9d58e6d5 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -89,6 +89,13 @@ fn run_server_process(startup_timeout: Option) -> Result) -> Result Date: Mon, 5 Feb 2024 10:13:31 +0100 Subject: [PATCH 2/6] fixup! return error from bind directly --- src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index b9d58e6d5..4230126c6 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -93,8 +93,8 @@ fn run_server_process(startup_timeout: Option) -> Result Date: Mon, 5 Feb 2024 10:28:15 +0100 Subject: [PATCH 3/6] fixup! fmt --- src/commands.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 4230126c6..064444aac 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -92,9 +92,7 @@ fn run_server_process(startup_timeout: Option) -> Result Date: Mon, 5 Feb 2024 12:07:09 +0100 Subject: [PATCH 4/6] fixup! explain race avoidance --- src/commands.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index 064444aac..308d6a54b 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -90,7 +90,9 @@ fn run_server_process(startup_timeout: Option) -> Result Date: Tue, 6 Feb 2024 09:56:25 +0100 Subject: [PATCH 5/6] fixup! simply code for listener --- src/commands.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 308d6a54b..fec86e832 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -93,8 +93,10 @@ fn run_server_process(startup_timeout: Option) -> Result Date: Wed, 7 Feb 2024 10:43:31 +0100 Subject: [PATCH 6/6] fixup! remove redundant clone() --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index fec86e832..ab740582e 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -95,7 +95,7 @@ fn run_server_process(startup_timeout: Option) -> Result