Skip to content

Commit

Permalink
Only close server when errno is not EINTR
Browse files Browse the repository at this point in the history
  • Loading branch information
rowandempster authored and bkueng committed Jun 6, 2024
1 parent 68769ea commit bc51eb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions platforms/posix/src/px4/common/px4_daemon/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bc51eb3

Please sign in to comment.