1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- /usr/bin/http-replicator 2007-07-09 20:09:44.000000000 +0200
+++ 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'))
|