error: avoid undefined use of stdout
authorEric Blake <ebb9@byu.net>
Sat, 18 Jul 2009 12:18:21 +0000 (06:18 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 18 Jul 2009 12:18:21 +0000 (06:18 -0600)
commitd19ab0454ad81cd702f17864f082aefcbea6687a
tree4dedc117846aa30c3896a445ca0eac6a3840d0a0
parentfdccb1c31b8693bcda4faea73b0d81d1c3be0719
error: avoid undefined use of stdout

* lib/error.c (error, error_at_line): Check that fd 1 is open
before flushing stdout.  Avoids a crash on cygwin when libsigsegv
is handling faults and the close_stdout module wants to report the
detection of closed stdout as an error.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/error.c