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.
Posted Apr 7, 2019 18:19 UTC (Sun)
by quotemstr (subscriber, #45331)
[Link]
Rethinking race-free process signaling
Besides, SCM_RIGHTS doesn't "copy" anything. It's pass-by-reference, not pass-by-value.