Update monado

This commit is contained in:
Sapphire
2025-11-15 20:34:57 +01:00
committed by xytovl
parent 57ba039f51
commit fb3f7a1599
16 changed files with 87 additions and 111 deletions
@@ -0,0 +1,38 @@
From 69469ad46f9caf5a55dad24d29c51b7ae712f44e Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 8 Oct 2024 22:13:15 +0200
Subject: [PATCH 2/6] Use extern socket fd
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/xrt/ipc/server/ipc_server_mainloop_linux.c b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
index d364fbed3..f05763966 100644
--- a/src/xrt/ipc/server/ipc_server_mainloop_linux.c
+++ b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
@@ -55,6 +55,8 @@
*/
DEBUG_GET_ONCE_BOOL_OPTION(skip_stdin, "XRT_NO_STDIN", false)
+extern int listen_socket;
+
/*
*
* Static functions.
@@ -63,6 +65,12 @@ DEBUG_GET_ONCE_BOOL_OPTION(skip_stdin, "XRT_NO_STDIN", false)
static int
get_systemd_socket(struct ipc_server_mainloop *ml, int *out_fd)
{
+ if (listen_socket >= 0)
+ {
+ ml->launched_by_socket = true;
+ *out_fd = listen_socket;
+ return 0;
+ }
#ifdef XRT_HAVE_SYSTEMD
// We may have been launched with socket activation
int num_fds = sd_listen_fds(0);
--
2.51.2