diff options
author | Jim Meyering <meyering@redhat.com> | 2008-05-20 10:15:46 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-05-20 10:15:46 +0200 |
commit | b47e28bbc861470014de386fc116335f29de0656 (patch) | |
tree | 4681a660ed31a4c8be0dc6d550709be000e237e4 /src/fid.c | |
parent | ff2a80bc177f3cd673d3f133f543c011f01748ae (diff) | |
download | idutils-b47e28bbc861470014de386fc116335f29de0656.tar.gz idutils-b47e28bbc861470014de386fc116335f29de0656.tar.bz2 idutils-b47e28bbc861470014de386fc116335f29de0656.zip |
detect write error on stdout
* src/fid.c: Include "closeout.h".
(main): Use it via atexit.
* src/fnid.c (main): Likewise.
* src/lid.c (main): Likewise.
* src/mkid.c (main): Likewise.
* src/xtokid.c (main): Likewise.
* NEWS: Mention the bug fixes.
Diffstat (limited to 'src/fid.c')
-rw-r--r-- | src/fid.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -28,6 +28,7 @@ #include <pathmax.h> #include <xalloc.h> +#include "closeout.h" #include "xnls.h" #include "idfile.h" #include "iduglobal.h" @@ -113,6 +114,8 @@ main (int argc, char **argv) textdomain (PACKAGE); #endif + atexit (close_stdout); + for (;;) { int optc = getopt_long (argc, argv, "f:", |