From 98df3a2ed852b5283d39fa5f507400bf4d5f324c Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 28 Jun 2023 18:33:24 +0200 Subject: [PATCH] Fix build with assertions --- server/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/main.cpp b/server/main.cpp index bf8ace66..a968c10b 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -123,7 +123,9 @@ int create_listen_socket() } - assert(fd == SD_LISTEN_FDS_START); + // we use "socket activation" mode of monado, + // it requires fd to be SD_LISTEN_FDS_START, which is 3 + assert(fd == 3); setenv("LISTEN_FDS", "1", true);