Commits

Anonymous committed eab9018

Try sending SIGINT to the daemonized process first, before resorting to SIGTERM.

Comments (0)

Files changed (1)

paste/script/serve.py

             if not live_pidfile(pid_file):
                 break
             import signal
+            os.kill(pid, signal.SIGINT)
+            time.sleep(1)
+        for j in range(10):
+            if not live_pidfile(pid_file):
+                break
+            import signal
             os.kill(pid, signal.SIGTERM)
             time.sleep(1)
         else: