[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
|
|
Subscribe / Log in / New account

Rethinking race-free process signaling

Rethinking race-free process signaling

Posted Apr 5, 2019 18:32 UTC (Fri) by pbonzini (subscriber, #60935)
In reply to: Rethinking race-free process signaling by jgg
Parent article: Rethinking race-free process signaling

It can double fork and when the parent exits the child is reparented to init (or to the subreaper if it exists). init is very quick at reaping zombies, and that can cause PID reuse.


to post comments

Rethinking race-free process signaling

Posted Apr 19, 2019 18:12 UTC (Fri) by mixi (guest, #131542) [Link]

It can't make the kernel reuse the original child's PID, as it will hang around as zombie process until the creator executes any of the wait* functions.

It could exit in the grandchild, which would cause the grandchild to be reaped by init, but won't have any effect on the child's PID.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds