Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: Added ability to set environment variables in stdchildren.
[ashd.git]
/
examples
/
python
/
dynhosts
/
dynhosts
diff --git
a/examples/python/dynhosts/dynhosts
b/examples/python/dynhosts/dynhosts
index
fae28c8
..
0e10b73
100755
(executable)
--- a/
examples/python/dynhosts/dynhosts
+++ b/
examples/python/dynhosts/dynhosts
@@
-5,6
+5,8
@@
from ashd import util
children = {}
root = sys.argv[1]
children = {}
root = sys.argv[1]
+
+# Automatically reap all children that die for any reason.
signal.signal(signal.SIGCHLD, signal.SIG_IGN)
def serve(req):
signal.signal(signal.SIGCHLD, signal.SIG_IGN)
def serve(req):
@@
-18,6
+20,6
@@
def serve(req):
children[dname] = util.pchild(["dirplex", path], autorespawn = True)
children[dname].passreq(req)
return
children[dname] = util.pchild(["dirplex", path], autorespawn = True)
children[dname].passreq(req)
return
- util.respond(req, "No such host i
n
configured.\n", status = "404 Not Found", ctype = "text/plain")
+ util.respond(req, "No such host i
s
configured.\n", status = "404 Not Found", ctype = "text/plain")
util.serveloop(serve)
util.serveloop(serve)