def spawn_main(pipe_handle, parent_pid=None, tracker_fd=None):
 assert is_forking(sys.argv)
 if (sys.platform == 'win32'):
  import msvcrt
  new_handle = reduction.steal_handle(parent_pid, pipe_handle)
  fd = msvcrt.open_osfhandle(new_handle, os.O_RDONLY)
 else:
  from . import semaphore_tracker
  semaphore_tracker._semaphore_tracker._fd = tracker_fd
  fd = pipe_handle
 exitcode = _main(fd)
 sys.exit(exitcode)

def spawn_main ( pipe_handle , parent_pid = None , tracker_fd = None ) : assert is_forking ( sys . argv ) if ( sys . platform == 'win32' ) : import msvcrt new_handle = reduction . steal_handle ( parent_pid , pipe_handle ) fd = msvcrt . open_osfhandle ( new_handle , os . O_RDONLY ) else : from . import semaphore_tracker semaphore_tracker . _semaphore_tracker . _fd = tracker_fd fd = pipe_handle exitcode = _main ( fd ) sys . exit ( exitcode )
run code specified by data received over pipe .