[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Uploaded tmpreaper 1.4.8 (source i386) to master



Joey Hess <joey@kitenet.net> writes:

> I can't say I agree. It feels like a hack. What if the ssh-agent is running,
> but suspended, for several days?

Good point.

> I just had a wacky idea - why not use something similar to lsof to
> figure out what processes have files in /tmp open. If any process
> have a file open, don't delete it. Would that be a more general
> solution? (It might slow tmpreaper down too much, though).

Now that sounds like a better idea if it would work, but just like the
"touching idea", you'd have to make sure that all the relevant
programs actually keep the file open, and don't just open it when they
need it.

-- 
Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930


Reply to: