
One of the new flags for clone3() in Linux 7.1 is CLONE_AUTOREAP . Using the CLONE_AUTOREAP flag will make child processes auto-reap on exit without the chance of becoming a zombie process.
Another new flag is CLONE_PIDFD_AUTOKILL to tie the child's lifetime to the process ID file descriptor returned from the clone3()




