[TUHS] reboot(2) system call
Greg A. Woods
woods at robohack.ca
Wed Jan 27 16:01:12 AEST 2021
At Mon, 27 Jul 2020 12:57:59 -0600, Warner Losh <imp at bsdimp.com> wrote:
Subject: [TUHS] reboot(2) system call
> I've done some research for a friend about when the reboot() system call
> was added, and how it related to the sync, sync, sync dance.
> may be of interest. Please do let me know if I've gotten something wrong...
I've definitely experienced the second "sync" blocking until the first
was done. Once upon a time I remembered exactly why that happened, but
I no longer do.
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.
The third one was just for superstitious good luck, and just in case
there was a process still running and writing to a filesystem.
Greg A. Woods <gwoods at acm.org>
Kelowna, BC +1 250 762-7675 RoboHack <woods at robohack.ca>
Planix, Inc. <woods at planix.com> Avoncote Farms <woods at avoncote.ca>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: OpenPGP Digital Signature
More information about the TUHS