Red Hat Bugzilla – Bug 60942
fam litters /tmp with old socket files
Last modified: 2008-05-01 11:38:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-21custom i686)
Description of problem:
The fam daemon leaves behind socket files of the form
/tmp/.fam*. Over time a great many such files will
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.login to a system using fam that has been up for a while
2.ls -l /tmp/.fam*
Actual Results: You will see lots of .fam* files, most of them inactive.
Expected Results: Only a few active socket files should be found.
It is not a good idea to simply remove .fam* files that
are older than X days since somebody could be logged in
for a long time and have legit .fam* files that are old.
A potential fix is to run the following cleanup script
from cron on, say a weekly or daily basis:
/usr/bin/find /tmp -name '.fam*' -type s |
while read file; do
if ! /sbin/fuser -s $file; then
/bin/rm -f $file
This was fixed in 2.6.7-4. It now removes the temporary files in a more robust way.