Use gnulib's closeout module to ensure any failure to write to
stdout is detected and reported.
* fish/fish.c: Include "closeout.h".
(main): Call atexit (close_stdout);
* bootstrap (modules): Add closeout.
(cd daemon && mkdir -p tests lib && ../$gnulib_tool --update)
modules='
+closeout
gitlog-to-changelog
gnu-make
gnumakefile
#include <guestfs.h>
#include "fish.h"
+#include "closeout.h"
#include "progname.h"
struct mp {
/* Set global program name that is not polluted with libtool artifacts. */
set_program_name (argv[0]);
+ atexit (close_stdout);
+
enum { HELP_OPTION = CHAR_MAX + 1 };
static const char *options = "a:Df:h::im:nrv?Vx";