File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,22 +325,19 @@ def build_subprocess_arglist(self):
325325
326326 def start_subprocess (self ):
327327 addr = ("localhost" , self .port )
328- self .spawn_subprocess ()
329328 # Idle starts listening for connection on localhost
330- for i in range (6 ):
329+ for i in range (3 ):
331330 time .sleep (i )
332331 try :
333332 self .rpcclt = rpc .RPCClient (addr )
334333 break
335334 except socket .error , err :
336- if i < 3 :
337- print >> sys .__stderr__ , ". " ,
338- else :
339- print >> sys .__stderr__ ,"\n Idle socket error: " + err [1 ]\
335+ print >> sys .__stderr__ ,"Idle socket error: " + err [1 ]\
340336 + ", retrying..."
341337 else :
342338 display_port_binding_error ()
343339 sys .exit ()
340+ self .spawn_subprocess ()
344341 # Accept the connection from the Python execution server
345342 self .rpcclt .accept ()
346343 self .rpcclt .register ("stdin" , self .tkconsole )
You can’t perform that action at this time.
0 commit comments