From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by sourceware.org (Postfix) with ESMTPS id 55D2D3858D3C for ; Mon, 16 May 2022 19:37:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 55D2D3858D3C Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from Express5800-S70 (ak044095.dynamic.ppp.asahi-net.or.jp [119.150.44.95]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 24GJb5Jd005246 for ; Tue, 17 May 2022 04:37:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 24GJb5Jd005246 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1652729826; bh=MCn6V6BggTesuGNfEwyyVRDMRDGLpzSMjaKA7ty2S7c=; h=Date:From:To:Subject:From; b=oFvTdHl5WiwPXXEwRomx7K5aAAh2HEbwZMbPO7ZvJ3LEW9arasnODX5FbxMk9HgeG 2fdSdmu/sd+dhojUUb+WEeaHDPNfNmdX0MepDOJNSXFQ1fdi/NfY/TBwNZwVIgBNfq PhCs6fiEBTy8m60qn2u6fiictEDiJ2jcSUoZjhxwk2yM7Gr2fODLDG8D6FHad3Oamf Ss4g1JVePE28IYle3948ikz3HxaUt1mUZz6PPYOM/O0YoytUegOQhb+hG1fRGKEH1q hJYRaZTMHxwW6UmvFln8JMof/QkM1yHaCBxd6QFZo54F+W+mIL0P93MPV1X04LP/7Z SktGdcm/k483A== X-Nifty-SrcIP: [119.150.44.95] Date: Tue, 17 May 2022 04:37:12 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: ps | cat broken in newlib-cygwin git head (master) Message-Id: <20220517043712.c3208bf70ad0d338a562aaf6@nifty.ne.jp> 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.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Mon, 16 May 2022 19:37:36 -0000 I found that "ps | cat" outputs nothing with the current git head (master) of newlib-cygwin. However, just "ps" and "ls | cat" works. This happens after the commit: commit 26747c47bc0a1137e02e0377306d721cc3478855 Author: Matt Joyce Date: Tue May 3 06:51:22 2022 +0200 Add stdio_exit_handler() Add a dedicated stdio exit handler to avoid using _GLOBAL_REENT in exit(). Is this the problem of cygwin side? Or newlib? I also found "stdbuf -o 0 ps | cat" works. It seems that this problem is caused by buffering of stdout. -- Takashi Yano