Previously, when trying to shutdown logstash, the snmptrap plugin would
endlessly try to restart. This change catches the ShutdownSignal
exception, exits the listening thread and returns, allowing Logstash to
shutdown.
Moved from https://github.com/elasticsearch/logstash/pull/1534
Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then say 'jenkins, test it'.
Previously, when trying to shutdown logstash, the snmptrap plugin would endlessly try to restart. This change catches the ShutdownSignal exception, exits the listening thread and returns, allowing Logstash to shutdown. Moved from https://github.com/elasticsearch/logstash/pull/1534