X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=examples%2Fpython%2Fdynhosts%2Fdynhosts;fp=examples%2Fpython%2Fdynhosts%2Fdynhosts;h=9a69a7059023df1cbeceb6f704dd0a838645a333;hp=fae28c8228ed279344b7d40e802531cbc0d385c8;hb=0c345c82fe0465b7e92076b90e3132ae3b6eba98;hpb=121587a56e50fd4cce884d9e61e8796436b150a4 diff --git a/examples/python/dynhosts/dynhosts b/examples/python/dynhosts/dynhosts index fae28c8..9a69a70 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):