(main): Call atexit with close_stdout.
Remove explicit close_stdout.
/* tee - read from standard input and write to standard output and files.
- Copyright (C) 85,1990-1999 Free Software Foundation, Inc.
+ Copyright (C) 85,1990-2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
append = 0;
ignore_interrupts = 0;
if (close (0) != 0)
error (1, errno, _("standard input"));
- close_stdout ();
-
exit (errs);
}