From: Daniel Narvaez <dwnarvaez@gmail.com>
To: util-linux@vger.kernel.org
Cc: kerolasa@iki.fi
Subject: Bug in the script util
Date: Tue, 6 Nov 2012 21:01:49 +0100 [thread overview]
Message-ID: <CANTHhvYU=J-A1VE+Ro91+-HA4MW6Dv8sGLbB16iQ3JS5JCm9sw@mail.gmail.com> (raw)
Hello,
it seems like the following commit introduced a bug.
commit cdd2a8c360c70d16804ace7cc923a6c6bb7c9ca9
Author: Sami Kerola <kerolasa@iki.fi>
Date: Wed Apr 4 19:44:04 2012 +0200
term-utils: verify writing to streams was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Before the commit
script -e -c "echo"
echo $?
0
After the commit
script -e -c "echo"
echo $?
1
I think what happens is that we first close stderr in dooutput (as
timingfd) and then we try to close it again in atexit(close_stdout),
causing the error.
In fact redirecting timingfd to a file fixes it
script -t/tmp/a -e -c "echo"
echo $?
0
--
Daniel Narvaez
reply other threads:[~2012-11-06 20:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CANTHhvYU=J-A1VE+Ro91+-HA4MW6Dv8sGLbB16iQ3JS5JCm9sw@mail.gmail.com' \
--to=dwnarvaez@gmail.com \
--cc=kerolasa@iki.fi \
--cc=util-linux@vger.kernel.org \
/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 NNTP newsgroup(s).