All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] pidfd: waiting on processes through pidfds
@ 2019-07-27  8:51 Christian Brauner
  2019-07-27  8:52 ` [PATCH v2 1/2] pidfd: add P_PIDFD to waitid() Christian Brauner
  2019-07-27  8:52 ` [PATCH v2 2/2] pidfd: add pidfd_wait tests Christian Brauner
  0 siblings, 2 replies; 9+ messages in thread
From: Christian Brauner @ 2019-07-27  8:51 UTC (permalink / raw)
  To: linux-kernel, oleg
  Cc: arnd, ebiederm, keescook, joel, tglx, tj, dhowells, jannh, luto,
	akpm, cyphar, torvalds, viro, kernel-team, Christian Brauner

Hey everyone,

/* v2 */
This adds the ability to wait on processes using pidfds. This is one of
the few missing pieces to make it possible to manage processes using
only pidfds.

Now major changes have occured since v1. The only thing that was changed
has been to move all find_get_pid() calls into the switch statement to
avoid checking the type argument twice as suggested by Linus.

The core patch for waitid is pleasantly small. The largest change is
caused by adding proper tests for waitid(P_PIDFD).

/* v1 */
Link: https://lore.kernel.org/lkml/20190726093934.13557-1-christian@brauner.io/

/* v0 */
Link: https://lore.kernel.org/lkml/20190724144651.28272-1-christian@brauner.io

Christian

Christian Brauner (2):
  pidfd: add P_PIDFD to waitid()
  pidfd: add pidfd_wait tests

 include/linux/pid.h                        |   4 +
 include/uapi/linux/wait.h                  |   1 +
 kernel/exit.c                              |  29 ++-
 kernel/fork.c                              |   8 +
 kernel/signal.c                            |   7 +-
 tools/testing/selftests/pidfd/pidfd.h      |  25 +++
 tools/testing/selftests/pidfd/pidfd_test.c |  14 --
 tools/testing/selftests/pidfd/pidfd_wait.c | 245 +++++++++++++++++++++
 8 files changed, 313 insertions(+), 20 deletions(-)
 create mode 100644 tools/testing/selftests/pidfd/pidfd_wait.c

-- 
2.22.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-27 19:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-27  8:51 [PATCH v2 0/2] pidfd: waiting on processes through pidfds Christian Brauner
2019-07-27  8:52 ` [PATCH v2 1/2] pidfd: add P_PIDFD to waitid() Christian Brauner
2019-07-27 16:28   ` Linus Torvalds
2019-07-27 16:41     ` Linus Torvalds
2019-07-27 19:42       ` Christian Brauner
2019-07-27 16:49     ` Al Viro
2019-07-27 19:46       ` Christian Brauner
2019-07-27 19:45     ` Christian Brauner
2019-07-27  8:52 ` [PATCH v2 2/2] pidfd: add pidfd_wait tests Christian Brauner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.