[ Sorry, sent in the wrong patch. This one should apply with the usual -p1
option. ]
The current logic assumes that a /proc//task directory should have a
hardlink count of 3, probably counting ".", "..", and a directory for a single
child task.
It's fairly obvious that this doesn't work out co
The current logic assumes that a /proc//task directory should have a
hardlink count of 3, probably counting ".", "..", and a directory for a single
child task.
It's fairly obvious that this doesn't work out correctly when a PID has more
than one child task, which is quite often the case.
This
The pid directories in /proc/ currently return the wrong hardlink count - 3,
when there are actually 4 : ".", "..", "fd", and "task".
This is easy to notice using find(1):
cd /proc/
find
In the output, you'll see a message similar to:
find: WARNING: Hard link count is wrong for .:
3 matches
Mail list logo