diff options
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r-- | sys-utils/lscpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 6e17b2eb5..1c2d9b61a 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -41,6 +41,7 @@ #include "bitops.h" #include "tt.h" #include "path.h" +#include "closestream.h" #define CACHE_MAX 100 @@ -1255,6 +1256,7 @@ int main(int argc, char *argv[]) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + atexit(close_stdout); while ((c = getopt_long(argc, argv, "abce::hp::s:xV", longopts, NULL)) != -1) { |