提交 f296be74 编写于 作者: S Szabolcs Nagy 提交者: Rich Felker

sys/wait.h: add P_PIDFD from linux v5.4

allows waiting on a pidfd, in the future it might allow retrieving the
exit status by a non-parent process, see

  linux commit 3695eae5fee0605f316fbaad0b9e3de791d7dfaf
  pidfd: add P_PIDFD to waitid()
上级 5e0c9f24
...@@ -13,7 +13,8 @@ extern "C" { ...@@ -13,7 +13,8 @@ extern "C" {
typedef enum { typedef enum {
P_ALL = 0, P_ALL = 0,
P_PID = 1, P_PID = 1,
P_PGID = 2 P_PGID = 2,
P_PIDFD = 3
} idtype_t; } idtype_t;
pid_t wait (int *); pid_t wait (int *);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册