Skip to content

Commit

Permalink
explicitly ignore remaining uncrustify issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Apr 7, 2015
1 parent c6b8fb2 commit 8054786
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rclcpp/include/rclcpp/utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ signal_handler(int signal_value)
old_action.sa_sigaction(signal_value, siginfo, context);
}
} else {
// *INDENT-OFF*
if (
old_action.sa_handler != NULL && // Is set
old_action.sa_handler != SIG_DFL && // Is not default
old_action.sa_handler != SIG_IGN) // Is not ignored
// *INDENT-ON*
{
old_action.sa_handler(signal_value);
}
Expand Down Expand Up @@ -108,10 +110,12 @@ init(int argc, char * argv[])
if (::old_signal_handler == SIG_ERR)
#endif
{
// *INDENT-OFF*
throw std::runtime_error(
std::string("Failed to set SIGINT signal handler: (" + std::to_string(errno) + ")") +
// TODO(wjwwood): use strerror_r on POSIX and strerror_s on Windows.
std::strerror(errno));
// *INDENT-ON*
}
}

Expand Down

0 comments on commit 8054786

Please sign in to comment.