delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/02/25/05:27:53

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 988EA384640E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1614248869;
bh=l+vcGKAVD1mxj0EE9pYDzuv+JZY8GFe9bgqiZ1Q+wlI=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=Qw1ISbFEAYNWue0kqPaBppgOsH0hDowLgSfglM3Xt+vXcRpeO/Svb5muAJitRORIr
mNfMBYuIW9Wa2RtcGln/Ax5wIZap8H8GaSmeTySsLiTKIrkd6ws+oyrpkmhpE6afgS
gdLL4jos1M0mqNtvlOFj0s/JhqekfTEjY0hRq/6g=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 873B93854816
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
To: cygwin AT cygwin DOT com
Subject: Re: Tee and file redirections are very slow to write anything.
Message-Id: <20210225192710.c12222669e0927e94dc71b3c@nifty.ne.jp>
In-Reply-To: <f5btuq08ogb.fsf@ecclerig.inf.ed.ac.uk>
References: <DB7PR02MB39960C1E938B80D9B98CF40DE79F9 AT DB7PR02MB3996 DOT eurprd02 DOT prod DOT outlook DOT com>
<87eeh5b39n DOT fsf AT Otto DOT invalid>
<49e01de1-f7de-5d60-2996-3c9afb834396 AT cs DOT umass DOT edu>
<20210224224149 DOT GM2979 AT dimstar DOT local DOT net>
<7bdae030-12c7-b2fa-9386-5e279382637d AT SystematicSw DOT ab DOT ca>
<c0fed8e9-abfd-d159-20c5-3d6d0db956c4 AT SystematicSw DOT ab DOT ca>
<DB7PR02MB3996482A7201BD2F8EC165E4E79E9 AT DB7PR02MB3996 DOT eurprd02 DOT prod DOT outlook DOT com>
<f5btuq08ogb DOT fsf AT ecclerig DOT inf DOT ed DOT ac DOT uk>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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 <takashi DOT yano AT nifty DOT ne DOT jp>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019