Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site burl.UUCP Path: utzoo!watmath!clyde!burl!geoff From: geoff@burl.UUCP (geoff) Newsgroups: net.unix-wizards Subject: Re: Why sync three times Message-ID: <700@burl.UUCP> Date: Fri, 24-May-85 13:16:03 EDT Article-I.D.: burl.700 Posted: Fri May 24 13:16:03 1985 Date-Received: Sat, 25-May-85 08:30:15 EDT References: <2391@seismo.UUCP> Organization: AT&T Technologies, Burlington NC Lines: 18 > People have been asking why type sync three times before halting a machine. > I believe the answer is the same as why people say > > "Testing Testing 1 2 3" (ie, count to three) into microphones. > > Yours for better rumors, > -Mike How about this one? The 'sync' program (what runs when you type 'sync') just calls the 'sync' system call (I peeked). It says in the manual under sync(2) that the writing to disk may not be completed when sync returns. Hence typing sync 3 times provides a delay after which the file system should be up to date. Running 'fortune' the second and third times would be as effective and a whole lot more fun. I think the above is true, but am not positive. Comments? geoff sherwood