diff options
author | Eric Blake <ebb9@byu.net> | 2009-11-05 09:05:03 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-11-05 13:12:35 -0700 |
commit | dde83c27b4e5c75063c304e5dcfada6950a6d7ee (patch) | |
tree | b68f465970a1e87931fdd8a29769a019e341ac57 /tests/dd | |
parent | 20e5a0d562cf698fab7be3d04c5f1c356faa2dbb (diff) | |
download | coreutils-dde83c27b4e5c75063c304e5dcfada6950a6d7ee.tar.xz |
mktemp: use more robust means to avoid double-close of stdout
Reverts earlier patch - fflush() can succeed but fclose() fail for
some cases of write failures, and we want to catch those.
* src/mktemp.c (stdout_closed): New variable.
(maybe_close_stdout): New function, borrowed from dd.c.
(main): Track whether stdout has been closed.
Diffstat (limited to 'tests/dd')
0 files changed, 0 insertions, 0 deletions