1. Richard Mitchell
  2. PasteScript

Commits

Richard Mitchell  committed eab9018

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

  • Participants
  • Parent commits edb9ca5
  • Branches default

Comments (0)

Files changed (1)

File paste/script/serve.py

View file
             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: