[PATCH] procfs: Fix hardlink counts for /proc//task

2005-04-02 Thread Daniel Drake
[ 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

[PATCH] procfs: Fix hardlink counts for /proc//task

2005-04-02 Thread Daniel Drake
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

[PATCH] procfs: Fix hardlink counts

2005-04-01 Thread Daniel Drake
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 .: