Re:Linux gets frozen, what do you do?
by slight on Friday March 14, 2014 @11:14AM
(#7399281)
I believe the thinking is because sync isn't instant, especially on older slower hard drives, having to type it again give it time to actually complete.
[ Parent
| on HN ]
Re:Linux gets frozen, what do you do?
by halfasleep on Friday March 14, 2014 @12:12PM
(#7399786)
sync will block until it completes.
Back in the day (old Unix), the sync call would return right away, and the kernel would sync in the background. Unless there was a current background sync happening -- then sync would block until the first one finished, which is why you would have two sync's in a row. The third sync was thrown in just for luck.