]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - term-utils/scriptreplay.c
term-utils: verify writing to streams was successful
[thirdparty/util-linux.git] / term-utils / scriptreplay.c
index 5aa8d42af5ca37edeb275107fbd4e3104a7c5554..63dc6fce18435f23ae57cbc1b7321e992da2d5a9 100644 (file)
@@ -28,6 +28,7 @@
 #include <unistd.h>
 #include <getopt.h>
 
+#include "closestream.h"
 #include "nls.h"
 #include "c.h"
 
@@ -153,6 +154,7 @@ main(int argc, char *argv[])
 
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain(PACKAGE);
+       atexit(close_stdout);
 
        while ((ch = getopt_long(argc, argv, "t:s:d:Vh", longopts, NULL)) != -1)
                switch(ch) {