3 ms·
> once you do a `rmdir` you are not allowed to add any new files to the directory Ah, go figure. I had a feeling you'd run into something like that. As for yo
by EvilTerran 9y ago
> once you do a `rmdir` you are not allowed to add any new files to the directory
Ah, go figure. I had a feeling you'd run into something like that.
As for your tmpfs idea... you could do something with autofs to get automatic cleanup.
- DSMan195276 9y agoYeah, it's unfortunate, it'd be pretty cool if you could pull something off like that. And conceptually it's not much different then what you can do with files already. And autofs sounds like it could do it. I think the simplest implementation wouldn't be very complicated though, you could probably do it with a bash script that cross-checks folder names with running processes every 5 minutes or so. Assuming most programs clean-up after themselves, it only needs to handle programs that do an abnormal exit like SIGKILL. Of course, if that script has problems you'd be in for a bad time.