# Re: RFC: on adding new CLONE\_\* flags \[WAS Re: \[PATCH 0/4\] clone: add CLONE\_PIDFD\]

- From: Oleg Nesterov \<oleg@redhat.com\>
- Date: 2019-04-30 12:39:14 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2019/04/5584863
- Thread: https://ratatoskr.run/linux-api/2019/04/5569007/t.md

```text
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.
```
