Typically Linux uses a tmpfs (ramdisk) for /tmp -- which means on reboot everything gets wiped clean.
(Some distros don't use a tmpfs, in which case tmpfiles.d is used to empty /tmp as one of the tasks run on system startup.)
To me, that seems a much more reasonable way of dealing with orphaned temp files than using inaccurate date heuristics to purge random files in the course of normal operations.
|