On 08/14, Christian Brauner wrote: > > and a signal could come in between the system call that > retrieved the process gorup and the call to waitid that changes the ^^^^^ > current process group.
I noticed this typo only because I spent 2 minutes or more trying to understand this sentence ;) But yes, a signal handler or another thread can change pgrp in between. Reviewed-by: Oleg Nesterov <o...@redhat.com>