

def run_with_reloader(main_func, extra_files=None, interval=1):
    'Run the given function in an independent python interpreter.'
    import signal
    signal.signal(signal.SIGTERM, (lambda *args: sys.exit(0)))
    if (os.environ.get('WERKZEUG_RUN_MAIN') == 'true'):
        thread.start_new_thread(main_func, ())
        try:
            reloader_loop(interval, interval)
        except KeyboardInterrupt:
            return
    try:
        sys.exit(restart_with_reloader())
    except KeyboardInterrupt:
        pass

dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/serving.py run_with_reloader/VarMisuse@77/123 `extra_files`->`interval`