From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: ps | cat broken in newlib-cygwin git head (master)
Date: Tue, 17 May 2022 04:37:12 +0900 [thread overview]
Message-ID: <20220517043712.c3208bf70ad0d338a562aaf6@nifty.ne.jp> (raw)
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 <matthew.joyce@embedded-brains.de>
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 <takashi.yano@nifty.ne.jp>
next reply other threads:[~2022-05-16 19:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 19:37 Takashi Yano [this message]
2022-05-17 3:17 ` Takashi Yano
2022-05-17 7:38 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220517043712.c3208bf70ad0d338a562aaf6@nifty.ne.jp \
--to=takashi.yano@nifty.ne.jp \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).