Signed-off-by: Sami Kerola <kerolasa@iki.fi>
#include "c.h"
#include "nls.h"
-
+#include "closestream.h"
#include "strutils.h"
#include "procutils.h"
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while((i = getopt_long(argc, argv, "+abfiphmoRrvV", longopts, NULL)) != -1)
{
#include "nls.h"
#include "strutils.h"
#include "c.h"
+#include "closestream.h"
static int tolerant;
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) {
#include "xalloc.h"
#include "procutils.h"
#include "c.h"
+#include "closestream.h"
struct taskset {
pid_t pid; /* task PID */
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
memset(&ts, 0, sizeof(ts));