开发者

signal and child process

开发者 https://www.devze.com 2023-02-28 02:18 出处:网络
A quick and hopefully easy question. I have a process A, which forks a开发者_Go百科 process B. When I send a signal, e.g SIGINT, will both A and B receive it?

A quick and hopefully easy question.

I have a process A, which forks a开发者_Go百科 process B. When I send a signal, e.g SIGINT, will both A and B receive it?

Thanks,


Short answer: No.

From the moment fork was successful, those process will be independent from each other (except for wait() and stuff like that)

0

精彩评论

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