I am learning for the Red Hat certification. In the book it is stated that since RHEL 7 (so also Centos latest version) that you dont need to use nohup anymore if you launch a process in the background, if you kill the parent shell the started process wont be killed anymore.
I tried to test this and saw two behaviours. If I ran
sleep 3600 &
then it is as said in the book and I see the process running even if I kill the parent shell.
If I run (example from the book)
dd if=/dev/zero of=/dev/null &
and I kill the parent shell then I dont see anymore the process.
Can anyone tell why is this ?