From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: Re: RFC: on adding new CLONE_* flags [WAS Re: [PATCH 0/4] clone: add CLONE_PIDFD] Date: Tue, 30 Apr 2019 14:39:01 +0200 Message-ID: <20190430123901.GD23020@redhat.com> References: <20190414201436.19502-1-christian@brauner.io> <20190415195911.z7b7miwsj67ha54y@yavin> <20190420071406.GA22257@ip-172-31-15-78> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Linus Torvalds Cc: Jann Horn , Kevin Easton , Andy Lutomirski , Christian Brauner , Aleksa Sarai , "Enrico Weigelt, metux IT consult" , Al Viro , David Howells , Linux API , LKML , "Serge E. Hallyn" , Arnd Bergmann , "Eric W. Biederman" , Kees Cook , Thomas Gleixner , Michael Kerrisk , Andrew Morton , Joel Fernandes , Daniel Colascione List-Id: linux-api@vger.kernel.org On 04/29, Linus Torvalds wrote: > > Linux vfork() is very much a real vfork(). What do you mean? Yes, but I am wondering if man vfork should clarify what "child terminates" actually means. I mean, the child can do clone(CLONE_THREAD) + sys_exit(), this will wake the parent thread up before the child process exits or execs. I see nothing wrong, but I was always curious whether it was designed this way on purpose or not. Oleg.