[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 7, 2019 10:40 UTC (Sun) by meuh (guest, #22042)
In reply to: Rethinking race-free process signaling by thiago
Parent article: Rethinking race-free process signaling

The problem we faced then was exactly the problem of reparenting when the file descriptor is passed onwards via AF_UNIX.
I think file descriptor sent through SCM_RIGHT should not imply reparenting process to the reader, just like file descriptor inherited through fork() don't imply reparenting process to the newly created one. The semantic of those operations is "copy" ... but "copying" parent relationship doesn't make sense for me: in Unix a process can only have a single parent.


to post comments

Rethinking race-free process signaling

Posted Apr 7, 2019 18:19 UTC (Sun) by quotemstr (subscriber, #45331) [Link]

Besides, SCM_RIGHTS doesn't "copy" anything. It's pass-by-reference, not pass-by-value.


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