From 04e5fae0e3e0efd3e68a11e2d5b5e3e1a42811ac Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Tue, 10 Dec 2019 11:09:14 +0100 Subject: [PATCH] subproc: recognize CLONE_PIDFD --- subproc.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subproc.cc b/subproc.cc index e1fedf4..983acca 100644 --- a/subproc.cc +++ b/subproc.cc @@ -71,6 +71,10 @@ static const std::string cloneFlagsToStr(uintptr_t flags) { NS_VALSTR_STRUCT(CLONE_FS), NS_VALSTR_STRUCT(CLONE_FILES), NS_VALSTR_STRUCT(CLONE_SIGHAND), +#if !defined(CLONE_PIDFD) +#define CLONE_PIDFD 0x00001000 +#endif + NS_VALSTR_STRUCT(CLONE_PIDFD), NS_VALSTR_STRUCT(CLONE_PTRACE), NS_VALSTR_STRUCT(CLONE_VFORK), NS_VALSTR_STRUCT(CLONE_PARENT),