--- dev_appserver.py.orig	Fri Oct 03 12:28:20 2008
+++ dev_appserver.py	Fri Oct 31 22:18:19 2008
@@ -52,4 +52,17 @@
   script_name = os.path.basename(__file__)
   script_name = SCRIPT_EXCEPTIONS.get(script_name, script_name)
   script_path = os.path.join(SCRIPT_DIR, script_name)
-  execfile(script_path, globals())
+  def run():
+    execfile(script_path, globals())
+  if sys.platform == 'win32':
+    sys.stdout.write('Running in subthread on Windows.\n');
+    import threading, time
+    t = threading.Thread(target=run)
+    t.setDaemon(True)
+    t.start()
+    try:
+      while True: time.sleep(3600)
+    except KeyboardInterrupt:
+      pass
+  else:
+    run()
