Y
Hacker News
new
|
ask
|
show
|
jobs
by
jcalvinowens
537 days ago
This can help:
https://man7.org/linux/man-pages/man2/close_range.2.html
close_range(3, ~0U, CLOSE_RANGE_UNSHARE); execve(....);
...but it's not very portable yet.
1 comments
oseityphelysiol
537 days ago
I’ve never heard of it before. I work in an embedded environment where kernel version is known beforehand, so portability won’t be an issue. Thanks.
link