diff options
author | Karel Zak | 2012-04-11 12:37:59 +0200 |
---|---|---|
committer | Karel Zak | 2012-04-11 12:37:59 +0200 |
commit | 6259c257d873798ea87341548d5e9c1d7821fce3 (patch) | |
tree | 8ef976bde5eabf8f549f2cd1407f321ac5032f2d /getopt | |
parent | libuuid: use randutils (diff) | |
parent | disk-utils: verify writing to streams was successful (diff) | |
download | kernel-qcow2-util-linux-6259c257d873798ea87341548d5e9c1d7821fce3.tar.gz kernel-qcow2-util-linux-6259c257d873798ea87341548d5e9c1d7821fce3.tar.xz kernel-qcow2-util-linux-6259c257d873798ea87341548d5e9c1d7821fce3.zip |
Merge branch 'close_stream' of git://github.com/kerolasa/lelux-utiliteetit
* 'close_stream' of git://github.com/kerolasa/lelux-utiliteetit:
disk-utils: verify writing to streams was successful
fdisk: verify writing to streams was successful
getopt: verify writing to streams was successful
hwclock: verify writing to streams was successful
login-utils: verify writing to streams was successful
misc-utils: verify writing to streams was successful
mount: verify writing to streams was successful
partx: verify writing to streams was successful
schedutils: verify writing to streams was successful
sys-utils: verify writing to streams was successful
term-utils: verify writing to streams was successful
text-utils: verify writing to streams was successful
include: add stream error checking facility
Conflicts:
fdisk/fdisk.c
Diffstat (limited to 'getopt')
-rw-r--r-- | getopt/getopt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/getopt/getopt.c b/getopt/getopt.c index 51ff19e95..4e5043aaa 100644 --- a/getopt/getopt.c +++ b/getopt/getopt.c @@ -58,6 +58,7 @@ #include <ctype.h> #include <getopt.h> +#include "closestream.h" #include "nls.h" #include "xalloc.h" @@ -363,6 +364,7 @@ int main(int argc, char *argv[]) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + atexit(close_stdout); init_longopt(); getopt_long_fp = getopt_long; |