Bug 60942 - fam litters /tmp with old socket files
Summary: fam litters /tmp with old socket files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: fam
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Alexander Larsson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-09 23:52 UTC by Landon Curt Noll
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-03-09 23:52:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Landon Curt Noll 2002-03-09 23:52:53 UTC
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
litter /tmp.

Version-Release number of selected component (if applicable):


How reproducible:
Always

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.


Additional info:

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
    fi
  done

Comment 1 Alexander Larsson 2002-03-11 16:03:59 UTC
This was fixed in 2.6.7-4. It now removes the temporary files in a more robust way.




Note You need to log in before you can comment on or make changes to this bug.