Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 177428 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/bin/http-replicator (-1 / +3 lines)
Lines 5-11 Link Here
5
#  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.
5
#  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.
6
#  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.
6
#  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.
7
7
8
import asyncore, socket, os, time, calendar, sys, re, optparse, logging
8
import asyncore, socket, os, time, calendar, sys, re, optparse, logging, signal
9
9
10
#  LISTENER
10
#  LISTENER
11
#
11
#
Lines 636-641 Link Here
636
			pidfile.write(str(pid)) # store child's pid
636
			pidfile.write(str(pid)) # store child's pid
637
			pidfile.close()
637
			pidfile.close()
638
			return
638
			return
639
		else:
640
			signal.signal(signal.SIGHUP, signal.SIG_IGN)
639
	else:
641
	else:
640
		handler = logging.StreamHandler(sys.stdout) # log to stdout
642
		handler = logging.StreamHandler(sys.stdout) # log to stdout
641
		handler.setFormatter(logging.Formatter('%(levelname)s: %(name)s %(message)s'))
643
		handler.setFormatter(logging.Formatter('%(levelname)s: %(name)s %(message)s'))

Return to bug 177428