Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4176DAA5.8060606@x-ray.at> Date: Wed, 20 Oct 2004 23:37:41 +0200 From: Reini Urban User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a3) Gecko/20040817 MIME-Version: 1.0 To: kenneth DOT shaffer AT sciatl DOT com CC: cygwin AT cygwin DOT com Subject: Re: flushing not always done on exit? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Shaffer, Kenneth schrieb: > To solve some weird "periodic" hangs where a script depends on the output > of a previous portion of the script, I've had to insert "sync" command. My > scripts use awk, sed, and grep, to name a few. > > I haven't come up with a simple test case yet, but thought I'd raise a > caution flag. It would be interesting to repeat those hangs without, and then fixes with sync on cygwin, because sync on cygwin is a no-op. See the src. Only explicit fsync(3) calls will help. Or most likely a small sleep() will help. your sync just burned some cycles in spirit to sleep. Filesystems are lazy, not just a windows fs. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/