Permalink
Browse files

Implemented stop on WSGIServerProcess. It was simpler than I thought.

  • Loading branch information...
1 parent eeca5f7 commit 0751065286ed23286343960c6fb1c9dd3b97e0f5 @brosner committed Jul 11, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 bosnowsgi.py
View
@@ -3,6 +3,7 @@
import os
import sys
import yaml
+import signal
from optparse import OptionParser
@@ -60,7 +61,7 @@ def stop(self, pid):
"""
Given ``pid`` (a process ID) gracefully terminate the process.
"""
- pass
+ os.kill(int(pid), signal.SIGHUP)
def daemonize():
"""

0 comments on commit 0751065

Please sign in to comment.