I am not able to understand the procedure behind the Linux system that when a parent process of a child is terminated before cleaning the resources of the child process. In this scenario we call child process as orphan process. In that case child process is re-parented to sytemd/ init / (PID-1) as its parent process and it will do cleanup of resources of orphan process/child process. My question in this is how it will be re-parented and how much time it will take in for orphan process to re-parented to systemd/ init/ (pid-1)?
↧