您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

81 行
2.3 KiB

  1. cdef class UVProcess(UVHandle):
  2. cdef:
  3. object _returncode
  4. object _pid
  5. object _errpipe_read
  6. object _errpipe_write
  7. object _preexec_fn
  8. bint _restore_signals
  9. list _fds_to_close
  10. # Attributes used to compose uv_process_options_t:
  11. uv.uv_process_options_t options
  12. uv.uv_stdio_container_t[3] iocnt
  13. list __env
  14. char **uv_opt_env
  15. list __args
  16. char **uv_opt_args
  17. char *uv_opt_file
  18. bytes __cwd
  19. cdef _close_process_handle(self)
  20. cdef _init(self, Loop loop, list args, dict env, cwd,
  21. start_new_session,
  22. _stdin, _stdout, _stderr, pass_fds,
  23. debug_flags, preexec_fn, restore_signals)
  24. cdef _after_fork(self)
  25. cdef char** __to_cstring_array(self, list arr)
  26. cdef _init_args(self, list args)
  27. cdef _init_env(self, dict env)
  28. cdef _init_files(self, _stdin, _stdout, _stderr)
  29. cdef _init_options(self, list args, dict env, cwd, start_new_session,
  30. _stdin, _stdout, _stderr, bint force_fork)
  31. cdef _close_after_spawn(self, int fd)
  32. cdef _on_exit(self, int64_t exit_status, int term_signal)
  33. cdef _kill(self, int signum)
  34. cdef class UVProcessTransport(UVProcess):
  35. cdef:
  36. list _exit_waiters
  37. list _init_futs
  38. bint _stdio_ready
  39. list _pending_calls
  40. object _protocol
  41. bint _finished
  42. WriteUnixTransport _stdin
  43. ReadUnixTransport _stdout
  44. ReadUnixTransport _stderr
  45. object stdin_proto
  46. object stdout_proto
  47. object stderr_proto
  48. cdef _file_redirect_stdio(self, int fd)
  49. cdef _file_devnull(self)
  50. cdef _file_inpipe(self)
  51. cdef _file_outpipe(self)
  52. cdef _check_proc(self)
  53. cdef _pipe_connection_lost(self, int fd, exc)
  54. cdef _pipe_data_received(self, int fd, data)
  55. cdef _call_connection_made(self, waiter)
  56. cdef _try_finish(self)
  57. @staticmethod
  58. cdef UVProcessTransport new(Loop loop, protocol, args, env, cwd,
  59. start_new_session,
  60. _stdin, _stdout, _stderr, pass_fds,
  61. waiter,
  62. debug_flags,
  63. preexec_fn, restore_signals)