process.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:oil 作者: oilshell 项目源码 文件源码
def ExecExternalProgram(argv, environ):
  """
  """
  # TODO: If there is an error, like the file isn't executable, then we should
  # exit, and the parent will reap it.  Should it capture stderr?
  try:
    os.execvpe(argv[0], argv, environ)
  except OSError as e:
    log('Unexpected error in execvpe(%r, %r, ...): %s', argv[0], argv, e)
    # Command not found means 127.  TODO: Are there other cases?
    sys.exit(127)
  # no return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号