delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <rurban AT x-ray DOT at> |
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: | <Pine DOT CYG DOT 4 DOT 58 DOT 0410201610360 DOT 680 AT Crunch DOT bcgssbd DOT sciatl DOT com> |
In-Reply-To: | <Pine.CYG.4.58.0410201610360.680@Crunch.bcgssbd.sciatl.com> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |