From efb8854f4cfa335f3ad72d79a84589110c2a8e87 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Wed, 4 Apr 2012 19:49:40 +0200 Subject: sys-utils: verify writing to streams was successful Signed-off-by: Sami Kerola --- sys-utils/mount.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys-utils/mount.c') diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 664c9865a..0f6140690 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -39,6 +39,7 @@ #include "xgetpass.h" #include "exitcodes.h" #include "xalloc.h" +#include "closestream.h" /*** TODO: DOCS: * @@ -701,6 +702,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(); -- cgit v1.2.3-55-g7522