2 ms·
While 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
by eqvinox 6y ago
While 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.