[TUHS] reboot(2) system call

Larry McVoy lm at mcvoy.com
Sun Jan 31 08:31:54 AEST 2021


On Sun, Jan 31, 2021 at 09:27:10AM +1100, Dave Horsfall wrote:
> On Tue, 26 Jan 2021, Greg A. Woods wrote:
> 
> >The lore I was told at the time was that you alwasy ran three and that it
> >didn't matter if they were all on the same line with semicolons or not
> >because of the very fact that the second one would block.
> 
> What I was taught was:
> 
> 	% sync
> 	% sync
> 	% sync
> 
> and never:
> 
> 	% sync; sync; sync
> 
> The theory was that by waiting for the shell prompt each time, it gave the
> buffer pool enough time to be flushed.

I was taught the exact same thing and for the same reasons.


More information about the TUHS mailing list