Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nohup for child process in unix

Tags:

shell

unix

aix

If I nohuped a parent process in unix, will the spawned child processes have the same protection as their parent?.

Suppose,

nohup par-process.sh &

and if par-process.sh contains the call to child as,

par-child.sh

will par-child be nohuped or should I do that explicitly for it?

Thanks in advance.

like image 890
jgua1 Avatar asked Aug 30 '10 13:08

jgua1


1 Answers

According to man fork child's signal handlers are inherited from parent, so answer to your question is yes.

like image 100
Victor Sorokin Avatar answered Nov 15 '22 07:11

Victor Sorokin