Show More
@@ -10,7 +10,7 b" This server doesn't do range requests so" | |||
|
10 | 10 | one pull |
|
11 | 11 | |
|
12 | 12 | $ cat > dumb.py <<EOF |
|
13 | > import BaseHTTPServer, SimpleHTTPServer, os, signal | |
|
13 | > import BaseHTTPServer, SimpleHTTPServer, os, signal, sys | |
|
14 | 14 | > |
|
15 | 15 | > def run(server_class=BaseHTTPServer.HTTPServer, |
|
16 | 16 | > handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): |
@@ -18,7 +18,7 b' one pull' | |||
|
18 | 18 | > httpd = server_class(server_address, handler_class) |
|
19 | 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 | 22 |
|
|
23 | 23 | > EOF |
|
24 | 24 | $ python dumb.py 2>/dev/null & |
General Comments 0
You need to be logged in to leave comments.
Login now