diff options
author | Sami Kerola | 2012-04-04 19:51:32 +0200 |
---|---|---|
committer | Sami Kerola | 2012-04-04 19:51:32 +0200 |
commit | ed8ec2a65d468b638d865d6fdafe0a249ca74c91 (patch) | |
tree | 80276a9a492da3854ca15103b49589b3a9677099 /schedutils/chrt.c | |
parent | sys-utils: verify writing to streams was successful (diff) | |
download | kernel-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.c | 3 |
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) { |