summaryrefslogtreecommitdiffstats
path: root/schedutils/chrt.c
diff options
context:
space:
mode:
authorSami Kerola2012-04-04 19:51:32 +0200
committerSami Kerola2012-04-04 19:51:32 +0200
commited8ec2a65d468b638d865d6fdafe0a249ca74c91 (patch)
tree80276a9a492da3854ca15103b49589b3a9677099 /schedutils/chrt.c
parentsys-utils: verify writing to streams was successful (diff)
downloadkernel-qcow2-util-linux-ed8ec2a65d468b638d865d6fdafe0a249ca74c91.tar.gz
kernel-qcow2-util-linux-ed8ec2a65d468b638d865d6fdafe0a249ca74c91.tar.xz
kernel-qcow2-util-linux-ed8ec2a65d468b638d865d6fdafe0a249ca74c91.zip
schedutils: verify writing to streams was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
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)
{