示例#1
0
def prConfigHandler(mypipe):
    shutdown = False
    ch = ConfigHandler()
    while not shutdown:
        job = ch.doHandler()
        if not job:
            time.sleep(1)
        if mypipe.poll():
            shutdown = mypipe.recv()
示例#2
0
文件: core1.py 项目: sridwan/meong
def prConfigHandler():
    global core1log
    ch = ConfigHandler()
    while True:
        try:
            job = ch.doHandler()
            if not job:
                time.sleep(1)
        except:
            errorstr = traceback.format_exc()
            print errorstr
            core1log.error('<ConfigHandler>\n{0}'.format(errorstr))
            raw_input()