LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Close file descriptors (https://www.linuxquestions.org/questions/linux-software-2/close-file-descriptors-647086/)

nikin 06-04-2008 09:52 PM

Close file descriptors
 
Hi,

I deleted a file owned by a running process. The file is still open
and the descriptor exists in /proc/<pid>/fd.
I see data are still written to the hard drive but there is no file name.
Is it possible to close the file descriptor of the deleted file so the data are no more written to the disc without exiting the process which created the file?

thanks

Nik

matthewg42 06-04-2008 10:26 PM

The process must close the file (perhaps you can tell the process to take this action if it has some sort of interactive interface). That or you will need to terminate the process.


All times are GMT -5. The time now is 06:25 AM.