开发者

nohup for child process in unix

开发者 https://www.devze.com 2023-01-14 04:58 出处:网络
If I nohuped a parent process in unix, will the spawned child processes have the same protection as their parent?.

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 p开发者_StackOverflow中文版ar-child be nohuped or should I do that explicitly for it?

Thanks in advance.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号