From 253a8a2541d657d780f288aa0339a04c000effaf Mon Sep 17 00:00:00 2001 From: Rowan Dempster Date: Thu, 30 May 2024 16:39:16 -0400 Subject: [PATCH] Only close server when errno is not EINTR --- platforms/posix/src/px4/common/px4_daemon/server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platforms/posix/src/px4/common/px4_daemon/server.cpp b/platforms/posix/src/px4/common/px4_daemon/server.cpp index c3b012bb8462..c26b364457f7 100644 --- a/platforms/posix/src/px4/common/px4_daemon/server.cpp +++ b/platforms/posix/src/px4/common/px4_daemon/server.cpp @@ -153,9 +153,8 @@ Server::_server_main() // Reboot command causes System Interrupt to stop poll(). This is not an error if (errno != EINTR) { PX4_ERR("poll() failed: %s", strerror(errno)); + break; } - - break; } _lock();