相关疑难解决方法(0)

FD_CLOEXEC fcntl()标志有什么作用?

像这样:

if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
...
Run Code Online (Sandbox Code Playgroud)

虽然我读过man fcntl,但我无法弄清楚它的作用.

c

76
推荐指数
2
解决办法
6万
查看次数

标签 统计

c ×1