summaryrefslogtreecommitdiffstats
path: root/schedutils/chrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'schedutils/chrt.c')
-rw-r--r--schedutils/chrt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 944cd7748..cbf2417e8 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -31,7 +31,7 @@
#include "c.h"
#include "nls.h"
-
+#include "closestream.h"
#include "strutils.h"
#include "procutils.h"
@@ -218,6 +218,7 @@ int main(int argc, char **argv)
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while((i = getopt_long(argc, argv, "+abfiphmoRrvV", longopts, NULL)) != -1)
{