Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Faster recovery after error' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Faster recovery after error
Authored by: GaelicWizard on Apr 24, '08 10:28:28AM
So, if you change the hint to:

cat /dev/zero > /tmp/junk & rm /tmp/junk
then the file will magically disappear as soon as the drive fills up. This is slightly safer since it does not fail if RAM fills up to. For example, there are reasons why a rm call might not complete. In a ram-tight situation (if, say, the filesystem cache were to get rather large), then a fork might fail if there's no room on the swap device for more vm. JP

---
Pell

[ Reply to This | # ]