From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by sourceware.org (Postfix) with ESMTPS id 873B93854816 for ; Thu, 25 Feb 2021 10:27:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 873B93854816 Received: from Express5800-S70 (y085178.dynamic.ppp.asahi-net.or.jp [118.243.85.178]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 11PAR9j6029540; Thu, 25 Feb 2021 19:27:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 11PAR9j6029540 X-Nifty-SrcIP: [118.243.85.178] Date: Thu, 25 Feb 2021 19:27:10 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: Tee and file redirections are very slow to write anything. Message-Id: <20210225192710.c12222669e0927e94dc71b3c@nifty.ne.jp> In-Reply-To: References: <87eeh5b39n.fsf@Otto.invalid> <49e01de1-f7de-5d60-2996-3c9afb834396@cs.umass.edu> <20210224224149.GM2979@dimstar.local.net> <7bdae030-12c7-b2fa-9386-5e279382637d@SystematicSw.ab.ca> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2021 10:27:48 -0000 On Thu, 25 Feb 2021 09:51:48 +0000 "Henry S. Thompson wrote: > Hamish McIntyre-Bhatty via Cygwin writes: > > > I'm now thinking it may have been a Python script that was behaving this > > way - I might go and double check in case this isn't what I think it is. > > I have noticed recently (on a Linux box) that Python3.8 logging exhibits > the problem you report, that is, no output until end of job. stdbuf does not take effect for python, however, you can use -u option or setting environment PYTHONUNBUFFERED=1. -- Takashi Yano