コード例 #1
0
ファイル: customtask.py プロジェクト: phillc54/linuxcnc
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)
コード例 #2
0
ファイル: customtask.py プロジェクト: 13788593535/machinekit
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)