Comment by wruza
4 years ago
Curious why there isn’t an interface in which all required handles and resources could be passed to a child process explicitly. E.g.:
execvpehm(
...,
int *handles, size_t,
void **pages, size_t,
/* etc */
);
Would remove so many headaches with concurrency and accidental inheritance.
I suppose Linux's clone3 call goes the closest to that.