call[fs]cgi: Reset SIGCHLD to SIG_DFL before exec'ing children.
[ashd.git] / python3 / ashd-wsgi3
index a07ac8d..fbb8d38 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/python3
 
-import sys, os, getopt, threading, socket, logging, time, locale, collections
-import ashd.proto, ashd.util, ashd.perf, ashd.serve
+import sys, os, getopt, socket, logging, time, locale, collections
+import ashd.util, ashd.serve
 try:
     import pdm.srv
 except:
@@ -13,7 +13,7 @@ def usage(out):
 hspec = "free", {}
 modwsgi_compat = False
 setlog = True
-opts, args = getopt.getopt(sys.argv[1:], "+hALp:t:m:")
+opts, args = getopt.getopt(sys.argv[1:], "+hALp:t:l:m:")
 for o, a in opts:
     if o == "-h":
         usage(sys.stdout)
@@ -24,6 +24,8 @@ for o, a in opts:
         setlog = False
     elif o == "-A":
         modwsgi_compat = True
+    elif o == "-l":
+        hspec = "free", {"max": a, "abort": "10"}
     elif o == "-t":
         hspec = ashd.serve.parsehspec(a)
     elif o == "-m":