diff options
-rw-r--r-- | sys-utils/eject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/eject.c b/sys-utils/eject.c index 5aec0baa7..e008886cf 100644 --- a/sys-utils/eject.c +++ b/sys-utils/eject.c @@ -46,6 +46,7 @@ #include <libmount.h> #include "c.h" +#include "closestream.h" #include "nls.h" #include "strutils.h" #include "xalloc.h" @@ -921,6 +922,7 @@ int main(int argc, char **argv) setlocale(LC_ALL,""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + atexit(close_stdout); /* parse the command line arguments */ parse_args(argc, argv, &device); |