3 ms·
Sockets allow for more robust serialization than argv.
by tedunangst 6y ago
Sockets allow for more robust serialization than argv.
- eqvinox 6y agoWhile that is certainly true, you could also just serialize over stdin/stdout. Or even have fd 0/1 be a socket you got from socketpair(). A daemon running in the background consumes resources and generally increases attack surface re. security issues - though in this specific case the one-shot executable would admittedly need the same privileges.
- tedunangst 6y agoCalling exec() in fact requires more privileges than holding a socket open.