def handler(signum, frame): ''' controlled shut down after this, emcIoHalt() will be called, too ''' print("Python Task shutdown handler") # this handler overrides the handler in emctaskmain, so call that as well emctask.emctask_quit(signum)
def handler(signum, frame): ''' controlled shut down after this, emcIoHalt() will be called, too ''' print "Python Task shutdown handler" # this handler overrides the handler in emctaskmain, so call that as well emctask.emctask_quit(signum)