parameters: (global_flags,
                              build_file_path, variables,
                              includes, depth, check,
                              generator_input_info)
docstring: Wrapper around LoadTargetBuildFile for parallel processing.
  
       This wrapper is used when LoadTargetBuildFile is executed in
       a worker process.
docstring_summary: Wrapper around LoadTargetBuildFile for parallel processing.
docstring_tokens: Wrapper around LoadTargetBuildFile for parallel processing .
function: def CallLoadTargetBuildFile(global_flags,
                              build_file_path, variables,
                              includes, depth, check,
                              generator_input_info):
    """Wrapper around LoadTargetBuildFile for parallel processing.
  
       This wrapper is used when LoadTargetBuildFile is executed in
       a worker process.
    """
  
    try:
      signal.signal(signal.SIGINT, signal.SIG_IGN)
  
      # Apply globals so that the worker process behaves the same.
      for key, value in global_flags.iteritems():
        globals()[key] = value
  
      SetGeneratorGlobals(generator_input_info)
      result = LoadTargetBuildFile(build_file_path, per_process_data,
                                   per_process_aux_data, variables,
                                   includes, depth, check, False)
      if not result:
        return result
  
      (build_file_path, dependencies) = result
  
      # We can safely pop the build_file_data from per_process_data because it
      # will never be referenced by this process again, so we don't need to keep
      # it in the cache.
      build_file_data = per_process_data.pop(build_file_path)
  
      # This gets serialized and sent back to the main process via a pipe.
      # It's handled in LoadTargetBuildFileCallback.
      return (build_file_path,
              build_file_data,
              dependencies)
    except GypError, e:
      sys.stderr.write("gyp: %s\n" % e)
      return None
    except Exception, e:
      print >>sys.stderr, 'Exception:', e
      print >>sys.stderr, traceback.format_exc()
      return None
function_tokens: def CallLoadTargetBuildFile ( global_flags , build_file_path , variables , includes , depth , check , generator_input_info ) : try : signal . signal ( signal . SIGINT , signal . SIG_IGN ) # Apply globals so that the worker process behaves the same. for key , value in global_flags . iteritems ( ) : globals ( ) [ key ] = value SetGeneratorGlobals ( generator_input_info ) result = LoadTargetBuildFile ( build_file_path , per_process_data , per_process_aux_data , variables , includes , depth , check , False ) if not result : return result ( build_file_path , dependencies ) = result # We can safely pop the build_file_data from per_process_data because it # will never be referenced by this process again, so we don't need to keep # it in the cache. build_file_data = per_process_data . pop ( build_file_path ) # This gets serialized and sent back to the main process via a pipe. # It's handled in LoadTargetBuildFileCallback. return ( build_file_path , build_file_data , dependencies ) except GypError , e : sys . stderr . write ( "gyp: %s\n" % e ) return None except Exception , e : print >> sys . stderr , 'Exception:' , e print >> sys . stderr , traceback . format_exc ( ) return None