From bc51eb37eb6449ce13eb1b9ea01d667839dbc3e2 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 c3b012bb84..c26b364457 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();