How to close a file descriptor from another process in unix systems

前端 未结 5 987
轮回少年
轮回少年 2021-01-30 21:56

You can use command lsof to get file descriptors for all running processes, but what I would like to do is to close some of those descriptors without being insi

5条回答
  •  长发绾君心
    2021-01-30 22:48

    I doubt it. File descriptors are process-local, stdout is 1 to all processes, yet they still reference unique streams of course.

    Perhaps more detail would be useful, about the blocking problem you're trying to solve.

提交回复
热议问题