Commit a2ce4b8d authored by 's avatar

Merge fix to allow -P 0 to work.

parent 4478d06f
...@@ -377,7 +377,7 @@ def server_info(old, v, offset=0): ...@@ -377,7 +377,7 @@ def server_info(old, v, offset=0):
try: try:
v=string.atoi(v) v=string.atoi(v)
if v < 1: raise 'Invalid port', v if v < 0: raise 'Invalid port', v
v=v+offset v=v+offset
except: raise 'Invalid port', v except: raise 'Invalid port', v
...@@ -436,7 +436,7 @@ try: ...@@ -436,7 +436,7 @@ try:
elif o=='-S': sys.ZMANAGED=1 elif o=='-S': sys.ZMANAGED=1
elif o=='-X': elif o=='-X':
MONITOR_PORT=HTTP_PORT=FTP_PORT=FCGI_PORT=0 MONITOR_PORT=HTTP_PORT=FTP_PORT=FCGI_PORT=0
PCFI_FILE='' PCGI_FILE=''
elif o=='-m': elif o=='-m':
MONITOR_PORT=server_info(MONITOR_PORT, v) MONITOR_PORT=server_info(MONITOR_PORT, v)
elif o=='-w': elif o=='-w':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment