util-linux/term-utils
Sami Kerola 958e39d238 script: do not try to close stderr twice
The commit cdd2a8c360 broke script(1)
return value.

$ script -e -c "echo"; echo $?
1

The reason, as Daniel it reported, was that the script will close stderr
twice, once as timing file and atexit() in function close_stdout().  This
commit fixes the problem.

Reported-by: Daniel Narvaez <dwnarvaez@gmail.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-11-08 14:51:20 +01:00
..
Makemodule.am build-sys: always use default $(LDADD) 2012-07-09 16:23:51 +02:00
agetty.8 agetty: replace gethostbyname() with getaddrinfo() 2012-10-22 10:14:36 +02:00
agetty.c agetty: fix autodetection for TERM 2012-11-02 12:38:25 +01:00
mesg.1 docs: fix all man page groff warnings 2012-06-02 20:29:12 +02:00
mesg.c translation: unify stat error messages 2012-07-16 18:18:22 +02:00
reset reset: make scripts bourne sh compliant [checkbashisms] 2012-03-30 16:48:12 +02:00
reset.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
reset.033c reset: make scripts bourne sh compliant [checkbashisms] 2012-03-30 16:48:12 +02:00
script.1 docs: align script.1 with howto-man-page.txt 2011-10-03 20:32:45 +02:00
script.c script: do not try to close stderr twice 2012-11-08 14:51:20 +01:00
scriptreplay.1 docs: fix all man page groff warnings 2012-06-02 20:29:12 +02:00
scriptreplay.c scriptreplay: fix compiler warning [-Wmissing-prototypes] 2012-07-16 18:48:27 +02:00
setterm.1 setterm: order man page items alphabetically 2011-12-16 11:25:10 +01:00
setterm.c setterm: make error message more informative 2012-09-21 12:14:14 +02:00
ttymsg.c term-utils: verify writing to streams was successful 2012-04-04 19:46:25 +02:00
ttymsg.h ttymsg: fix compiler warnings and use EXIT_ 2011-04-12 11:19:15 +02:00
wall.1 Fix typos in comments and wall's man page 2012-06-05 14:37:26 +02:00
wall.c translation: unify file open error messages 2012-07-16 18:18:22 +02:00
write.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
write.c write: stop using MAXHOSTNAMELEN 2012-10-19 16:27:58 +02:00