Beispiel #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()
Beispiel #2
0
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()