python-agentx: Add signal handlers for INT and TERM

June 27, 2012

And another patch for python-agentx: this one adds signal handlers for signals INT and TERM.

This is necessary because python-agentx implements the main loop for your agent, anyway. Then it should also deal with termination handling when the agent either runs in foreground, ie. not daemonized, and CTRL-C is used to interrupt the main loop, and when the agent runs as a daemon where kill is used to signal the process termination.

The patch can be found at Sourceforge Bug report #3538295.

Posted in Coding, Software by Pieter Hollants

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

You must be logged in to post a comment.

 
Copyright © 2020 by Pieter Hollants. All rights reserved. - Legal notices & Privacy policy