(signum, frame)
This will close connections cleanly
This will close connections cleanly
This will close connections cleanly
def killhandle(signum, frame):
    ''' This will close connections cleanly '''
    logger.info("SIGTERM detected, shutting down")
    zsend.close()
    zrecv.close()
    sys.exit(0)
def killhandle ( signum , frame ) : logger . info ( "SIGTERM detected, shutting down" ) zsend . close ( ) zrecv . close ( ) sys . exit ( 0 )