LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2008, 09:52 PM   #1
nikin
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
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
 
Old 06-04-2008, 10:26 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Descriptors matsko Linux - Software 2 04-24-2008 11:45 AM
Increasing File Descriptors Geoffrey_Firmin Slackware 5 04-21-2008 09:48 AM
File Descriptors during I/O Redirection joseamuniz Programming 2 02-27-2008 04:54 PM
file descriptors node047 Linux - Newbie 1 03-29-2005 05:47 AM
unix file descriptors versus c FILE pointers nodger Programming 9 11-25-2004 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration