parent: Use os.execl in first stage

SSH command size: 435 (-4 bytes)
Preamble size: 8962 (no change)

os.execl is the same as os.execv, but it take a variable number of
arguments instead of a single sequence.
wip-fakessh-exit-status
Alex Willmer 6 years ago committed by David Wilson
parent 545652c34f
commit a62edd0b7e

@ -337,7 +337,7 @@ class Stream(mitogen.core.Stream):
os.close(W)
os.close(w)
os.environ['ARGV0']=sys.executable
os.execv(sys.executable,['mitogen:CONTEXT_NAME'])
os.execl(sys.executable,'mitogen:CONTEXT_NAME')
os.write(1,'EC0\n')
C=_(sys.stdin.read(PREAMBLE_COMPRESSED_LEN),'zip')
os.fdopen(W,'w',0).write(C)

Loading…
Cancel
Save