diff options
author | Sami Kerola | 2012-04-04 19:54:15 +0200 |
---|---|---|
committer | Sami Kerola | 2012-04-04 19:54:15 +0200 |
commit | f65c6d4e8272cacd5cc7b4950b71869623c79da6 (patch) | |
tree | fcce9089645f4868ae8dc8a7f680a320146668e0 /mount/umount.c | |
parent | partx: verify writing to streams was successful (diff) | |
download | kernel-qcow2-util-linux-f65c6d4e8272cacd5cc7b4950b71869623c79da6.tar.gz kernel-qcow2-util-linux-f65c6d4e8272cacd5cc7b4950b71869623c79da6.tar.xz kernel-qcow2-util-linux-f65c6d4e8272cacd5cc7b4950b71869623c79da6.zip |
mount: verify writing to streams was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'mount/umount.c')
-rw-r--r-- | mount/umount.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mount/umount.c b/mount/umount.c index 71cc0ee58..d3375df83 100644 --- a/mount/umount.c +++ b/mount/umount.c @@ -21,6 +21,7 @@ #include "env.h" #include "nls.h" #include "strutils.h" +#include "closestream.h" #if defined(MNT_FORCE) /* Interesting ... it seems libc knows about MNT_FORCE and presumably @@ -778,6 +779,7 @@ main (int argc, char *argv[]) { setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + atexit(close_stdout); progname = argv[0]; if ((p = strrchr(progname, '/')) != NULL) |