Prevent file descriptors inheritance during Linux fork

后端 未结 3 1844
死守一世寂寞
死守一世寂寞 2020-12-01 12:11

How do you prevent a file descriptor from being copy-inherited across fork() system calls (without closing it, of course)?

I am looking for a way to mar

3条回答
提交回复
热议问题