Exemple #1
0
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)
Exemple #2
0
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)