The open-files tag has no wiki summary.
7
votes
2answers
2k views
/proc/PID/fd/X link number
In Linux, in /proc/PID/fd/X, the links for file descriptors that are pipes or sockets have a number, like:
l-wx------ 1 user user 64 Mar 24 00:05 1 -> pipe:[6839]
l-wx------ 1 user user 64 Mar 24 ...
5
votes
4answers
1k views
How can same fd in different processes point to the same file?
Say I have process 1 and process 2. Both have a file descriptor corresponding to the integer 4.
In each process however the file descriptor 4 points to a totally different file in the Open File Table ...
5
votes
0answers
88 views
How can different file descriptors point to the same file in open file table? [duplicate]
Possible Duplicate:
How can same fd in different processes point to the same file?
I have a hard time grasping the two ideas of File Descriptor Table and Open File Table.
Open File Table ...
7
votes
2answers
890 views
What happens when I close() a file descriptor?
I am trying to get the whole picture with file descriptors. Say I have process1 which initially has these file descriptors:
_process1_
| |
| 0 stdin |
| 1 stdout |
| 2 stderr |
...
12
votes
3answers
658 views
Where do open file handles go when they die?
What happens to the files that are deleted while they have a file handle open to them?
I have been wondering this ever since I figured out I could delete a video file while it was playing in MPlayer ...
3
votes
2answers
1k views
How to find out which file is currently written by a process
My situation is that from time to time a specific process (in this case, it's Thunderbird) doesn't react to user input for a minute or so. I found out using iotop that during this time, it writes ...
3
votes
2answers
220 views
Capturing new output after deleting the output file
I'm runnig a java server on Debian with this command:
java -jar myapp.jar [args] >> log.txt
Once I gzipped the log file to send it and then I realized the original file was gone, leaving me ...