开发者

Does a parent and child still share signal controls if a child overlays image with exec()?

开发者 https://www.devze.com 2023-01-23 10:32 出处:网络
I think the question says it all. I w开发者_Go百科ant to send signals to a child after the child executes another program, but I am unsure if the child and parent still share signals after the image i

I think the question says it all. I w开发者_Go百科ant to send signals to a child after the child executes another program, but I am unsure if the child and parent still share signals after the image is destroyed and overlayed. I believe the parent and child still share signals and files, is this true?


After exec the child will still have the same pid and you can send signals to that pid, but any handlers that existed are gone. The child would have to set up explicit handlers itself.

0

精彩评论

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

关注公众号