Commit 545652c3 authored by Alex Willmer's avatar Alex Willmer Committed by David Wilson

parent: Trim whitespace & e variable in first stage

SSH command size: 439 (-4 bytes)
Preamble size: 8962 (no change)
parent 0336de67
...@@ -336,10 +336,10 @@ class Stream(mitogen.core.Stream): ...@@ -336,10 +336,10 @@ class Stream(mitogen.core.Stream):
os.close(r) os.close(r)
os.close(W) os.close(W)
os.close(w) os.close(w)
os.environ['ARGV0']=e=sys.executable os.environ['ARGV0']=sys.executable
os.execv(e,['mitogen:CONTEXT_NAME']) os.execv(sys.executable,['mitogen:CONTEXT_NAME'])
os.write(1,'EC0\n') os.write(1,'EC0\n')
C=_(sys.stdin.read(PREAMBLE_COMPRESSED_LEN), 'zip') C=_(sys.stdin.read(PREAMBLE_COMPRESSED_LEN),'zip')
os.fdopen(W,'w',0).write(C) os.fdopen(W,'w',0).write(C)
os.fdopen(w,'w',0).write('PREAMBLE_LEN\n'+C) os.fdopen(w,'w',0).write('PREAMBLE_LEN\n'+C)
os.write(1,'EC1\n') os.write(1,'EC1\n')
......
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