Include "__fpending.h" once again.
authorJim Meyering <jim@meyering.net>
Mon, 15 Nov 2004 17:45:32 +0000 (17:45 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 15 Nov 2004 17:45:32 +0000 (17:45 +0000)
commit12797e006016ec69a5c0760999d5cd7c2a372b54
treeb9ab965752bc2d863783c4485963155780a8d04c
parentafdbddd5557c899bbb260bdd61f4bfde0f8ac3b6
Include "__fpending.h" once again.
Include <stdbool.h>.
(close_stdout): Don't fail just because stdout was closed initially,
since some programs don't write to stdout in the normal course of
operation (other than --version and --help), and we don't want this
function to make e.g. `touch file >&-' fail.
But do fail if it was closed and someone has tried to write to it.
E.g., `printf foo >&-' must fail.
lib/closeout.c