blob: 969bbc91f9dae13ab6de5b56a0f07e9f510aad7a [file] [log] [blame]
--- a/http-replicator 2007-07-09 20:09:44.000000000 +0200
+++ b/http-replicator 2007-07-09 20:11:48.433913445 +0200
@@ -5,7 +5,7 @@
# Because of this the server runs as a single process, multiplexing I/O with its various client and server connections within a single process/thread.
# According to the readme <http://www.nightmare.com/medusa/README.html> this means it is capable of smoother and higher performance than most other servers, while placing a dramatically reduced load on the server machine.
-import asyncore, socket, os, time, calendar, sys, re, optparse, logging
+import asyncore, socket, os, time, calendar, sys, re, optparse, logging, signal
# LISTENER
#
@@ -636,6 +636,8 @@
pidfile.write(str(pid)) # store child's pid
pidfile.close()
return
+ else:
+ signal.signal(signal.SIGHUP, signal.SIG_IGN)
else:
handler = logging.StreamHandler(sys.stdout) # log to stdout
handler.setFormatter(logging.Formatter('%(levelname)s: %(name)s %(message)s'))