4 ms·
> Ironically the best to way manage all of this nonsense is to create a child process first thing in main That's a sensible strategy. Do you know if this desig
by stevenhuang 4y ago
> Ironically the best to way manage all of this nonsense is to create a child process first thing in main
That's a sensible strategy. Do you know if this design pattern has a name, of creating this "clean" process image base for forks via ipc?
- cryptonector 4y agoI would call it a spawn server, based on the "open server" or "doas" pattern, where you have a process that creates children to setuid() (etc.) which then set a private IPC service that open()s files and sends back the open FD to the caller.