##// END OF EJS Templates
test-static-http.t: get kill actually working...
Adrian Buehlmann -
r13208:b6693876 default
parent child Browse files
Show More
@@ -10,7 +10,7 b" This server doesn't do range requests so"
10 one pull
10 one pull
11
11
12 $ cat > dumb.py <<EOF
12 $ cat > dumb.py <<EOF
13 > import BaseHTTPServer, SimpleHTTPServer, os, signal
13 > import BaseHTTPServer, SimpleHTTPServer, os, signal, sys
14 >
14 >
15 > def run(server_class=BaseHTTPServer.HTTPServer,
15 > def run(server_class=BaseHTTPServer.HTTPServer,
16 > handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
16 > handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
@@ -18,7 +18,7 b' one pull'
18 > httpd = server_class(server_address, handler_class)
18 > httpd = server_class(server_address, handler_class)
19 > httpd.serve_forever()
19 > httpd.serve_forever()
20 >
20 >
21 > signal.signal(signal.SIGTERM, lambda x: sys.exit(0))
21 > signal.signal(signal.SIGTERM, lambda x, y: sys.exit(0))
22 > run()
22 > run()
23 > EOF
23 > EOF
24 $ python dumb.py 2>/dev/null &
24 $ python dumb.py 2>/dev/null &
General Comments 0
You need to be logged in to leave comments. Login now