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

前端 未结 5 974
轮回少年
轮回少年 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:35

    I don't think so but lsof gives you the PID of the process that has opened the file, so what you can do is entirely kill the process or at least send a signal to let it exit.

提交回复
热议问题