logstash-plugins / logstash-input-snmptrap

Apache License 2.0
12 stars 20 forks source link

snmptrap: handle shutdown #1

Open elasticsearch-bot opened 9 years ago

elasticsearch-bot commented 9 years ago

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

elasticsearch-release commented 9 years ago

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'.