3 ms·
pidfd does a bit to help with various PID issues, but obviously it's nowhere near a complete solution. A better solution that would fix much more things is if t
by jcranmer 3y ago
pidfd does a bit to help with various PID issues, but obviously it's nowhere near a complete solution. A better solution that would fix much more things is if the various syscalls that affected process attributes let you change those attributes on another process. Then you could have just a simple syscall that was "make new process with exe, argv, envp, and immediately put in stop phase before executing", and you could use the other syscalls to modify what you needed to before letting it start running via init. Basically like posix_spawn, but instead of having to enumerate all the stuff you want to do to the process before spawning it, you can do that at your leisure before telling it to start running.
> On a higher level, things aren't much better. Bash is a constant annoyance if you want to actually accurately pass arguments to commands, and not have things break from an extra space.
It seems to me that the Unix answer to this was "having spaces in arguments is clearly a user bug, what's wrong with you?"