wait.h 278 B

123456789101112
  1. #pragma once
  2. #include "types.h"
  3. /**
  4. * @brief 等待指定pid的子进程退出
  5. *
  6. * @param pid 子进程的pid
  7. * @param stat_loc 返回的子进程结束状态
  8. * @param options 额外的控制选项
  9. * @return pid_t
  10. */
  11. pid_t waitpid(pid_t pid, int *stat_loc, int options);