X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=examples%2Fpython%2Fdynhosts%2Fdynhosts;h=0e10b730465f5199fff8ca5ff86c2da3181cec5b;hb=bcad6b0c48d516ddc920b52f06083ceaa242e1ca;hp=fae28c8228ed279344b7d40e802531cbc0d385c8;hpb=7f8383098e49588529e3a203ed6d7bb2f27aef5c;p=ashd.git diff --git a/examples/python/dynhosts/dynhosts b/examples/python/dynhosts/dynhosts index fae28c8..0e10b73 100755 --- a/examples/python/dynhosts/dynhosts +++ b/examples/python/dynhosts/dynhosts @@ -5,6 +5,8 @@ from ashd import util children = {} root = sys.argv[1] + +# Automatically reap all children that die for any reason. 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 - util.respond(req, "No such host in configured.\n", status = "404 Not Found", ctype = "text/plain") + util.respond(req, "No such host is configured.\n", status = "404 Not Found", ctype = "text/plain") util.serveloop(serve)