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/ionice.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/ionice.c')
-rw-r--r-- | schedutils/ionice.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/schedutils/ionice.c b/schedutils/ionice.c index 18529753f..5fdeccf8d 100644 --- a/schedutils/ionice.c +++ b/schedutils/ionice.c @@ -17,6 +17,7 @@ #include "nls.h" #include "strutils.h" #include "c.h" +#include "closestream.h" static int tolerant; @@ -139,6 +140,7 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + atexit(close_stdout); while ((c = getopt_long(argc, argv, "+n:c:p:tVh", longopts, NULL)) != EOF) switch (c) { |