def _reloader_child(server, app, interval):
 lockfile = os.environ.get('BOTTLE_LOCKFILE')
 bgcheck = FileCheckerThread(lockfile, interval)
 try:
  bgcheck.start()
  server.run(app)
 except KeyboardInterrupt:
  pass
 (bgcheck.status, status) = (5, bgcheck.status)
 bgcheck.join()
 if status:
  sys.exit(status)

def _reloader_child ( server , app , interval ) : lockfile = os . environ . get ( 'BOTTLE_LOCKFILE' ) bgcheck = FileCheckerThread ( lockfile , interval ) try : bgcheck . start ( ) server . run ( app ) except KeyboardInterrupt : pass ( bgcheck . status , status ) = ( 5 , bgcheck . status ) bgcheck . join ( ) if status : sys . exit ( status )
start the server and check for modified files in a background thread .