Skip to content

Commit

Permalink
Do not display error message if poll yields EINTR (#1868)
Browse files Browse the repository at this point in the history
* Do not display error message if poll yields EINTR

Closes #1370
closes TonyRobotics/RoboWare#63
closes ericsantii/alexa-turtlesim-ros#2

* Keep abstraction compatibility
  • Loading branch information
Arusekk authored and dirk-thomas committed Aug 4, 2020
1 parent a21599a commit 5b6cf04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clients/roscpp/src/libros/poll_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ void PollSet::update(int poll_timeout)
boost::shared_ptr<std::vector<socket_pollfd> > ofds = poll_sockets(epfd_, &ufds_.front(), ufds_.size(), poll_timeout);
if (!ofds)
{
ROS_ERROR_STREAM("poll failed with error " << last_socket_error_string());
if (last_socket_error() != EINTR)
{
ROS_ERROR_STREAM("poll failed with error " << last_socket_error_string());
}
}
else
{
Expand Down

0 comments on commit 5b6cf04

Please sign in to comment.