Fork

Valentin Vidić vvidic at valentin-vidic.from.hr
Thu Jan 9 05:47:12 EST 2020


On Thu, Jan 09, 2020 at 10:35:16AM +0000, Christophe DUMONT wrote:
> How does the kernel knows when a process calls the fork function that
> he has the rights to create a new process ?

Not sure what you mean by rights, but in copy_process you can
see different checks and errors that can happen when creating
a new process:

https://elixir.bootlin.com/linux/latest/source/kernel/fork.c#L1760

-- 
Valentin



More information about the Kernelnewbies mailing list