Skip to content

Commit

Permalink
snmpstats: ignore signals during sigpipe
Browse files Browse the repository at this point in the history
Closes Coverity CID 40929
  • Loading branch information
razvancrainea committed Oct 24, 2016
1 parent fb4fac7 commit 1e458e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/snmpstats/sub_agent.c
Expand Up @@ -134,6 +134,7 @@ void agentx_child(int rank)
* need to be fatal however, because we can re-establish our
* connection. Therefore we set ourselves up to ignore the
* SIGPIPE. */
sigemptyset(&sigpipe_handler.sa_mask);
sigpipe_handler.sa_flags = SA_RESTART;
sigpipe_handler.sa_handler = SIG_IGN;

Expand Down

0 comments on commit 1e458e6

Please sign in to comment.