3 ms·
> But automatically deleting files - in either of those - while the system is running is going to break all sorts of things. Detect the process that created a
by dheera 2y ago
> But automatically deleting files - in either of those - while the system is running is going to break all sorts of things.
Detect the process that created a file and delete it 24 hours after the process ends.
- jgalt212 2y agoThanks for the homework assignment. The entire value proposition of tmp is there is no homework to do later.
- leni536 2y agoChrome is multi-process, isn't it?
- blucaz 2y agoOr what about, delete it after 10 days it was last accessed (regardless of whether for read or write)? Hint: that's already how tmpfiles.d works
- o11c 2y agoThat will fail badly with multi-process programs, which includes the example of browsers, and many others (databases anyone?).