How can I completely detach the child process from the parent process that is sharing a common cgroup?
Currently, I am achieving this by forking child again by doing ssh localhost but I want to avoid ssh localhost. I also tried daemonizing the child process but it seems it doesn't completely detach i.e. parent and child still share same cgroup. And since they are sharing the same cgroup hence sending a SIGKILL to parent process sends SIGKILL to child process as well.