diff options
author | Sami Kerola | 2012-04-04 19:49:40 +0200 |
---|---|---|
committer | Sami Kerola | 2012-04-04 19:49:40 +0200 |
commit | efb8854f4cfa335f3ad72d79a84589110c2a8e87 (patch) | |
tree | 83d1c6e33bb7afacb40bc81772d390d009fd70ac /sys-utils/umount.c | |
parent | term-utils: verify writing to streams was successful (diff) | |
download | kernel-qcow2-util-linux-efb8854f4cfa335f3ad72d79a84589110c2a8e87.tar.gz kernel-qcow2-util-linux-efb8854f4cfa335f3ad72d79a84589110c2a8e87.tar.xz kernel-qcow2-util-linux-efb8854f4cfa335f3ad72d79a84589110c2a8e87.zip |
sys-utils: verify writing to streams was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/umount.c')
-rw-r--r-- | sys-utils/umount.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/umount.c b/sys-utils/umount.c index cce4b5375..97b2f443b 100644 --- a/sys-utils/umount.c +++ b/sys-utils/umount.c @@ -34,6 +34,7 @@ #include "env.h" #include "optutils.h" #include "exitcodes.h" +#include "closestream.h" static int table_parser_errcb(struct libmnt_table *tb __attribute__((__unused__)), const char *filename, int line) @@ -309,6 +310,7 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + atexit(close_stdout); mnt_init_debug(0); cxt = mnt_new_context(); |