how to clean /tmp at shutdown?

Wolfgang S. Rupprecht wolfgang.rupprecht at gmail.com
Wed May 23 01:59:25 UTC 2012


Chris Adams <cmadams at hiwaay.net> writes:
> Actually, you were supposed to type that as three different commands
> (not on the same command line with just semicolons separating them).
> The idea was that the first sync was the only one that really mattered;
> the time it took you to type "sync<RETURN>" twice more was just how long
> you should wait after the first one for it to really complete.

The first sync was to queue up the blocks to be written.  That sync(1)
call would not block.  The second call would block until the flush
finished.  The third one was just for luck.  Or something.

Not sure what linux does.  It sure seems that the first one blocks under
some conditions (like a write to a slow usb block device.)

-wolfgang
-- 
g+:  https://plus.google.com/114566345864337108516/about


More information about the users mailing list