mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-22 16:41:16 -04:00
Include "exitfail.h".
(main): Set exit_failure rather than calling close_stdout_set_status.
This commit is contained in:
+2
-1
@@ -35,6 +35,7 @@
|
||||
#include "system.h"
|
||||
#include "closeout.h"
|
||||
#include "error.h"
|
||||
#include "exitfail.h"
|
||||
#include "long-options.h"
|
||||
|
||||
/* The official name of this program (e.g., no `g' prefix). */
|
||||
@@ -90,7 +91,7 @@ main (int argc, char **argv)
|
||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||
textdomain (PACKAGE);
|
||||
|
||||
close_stdout_set_status (2);
|
||||
exit_failure = 2;
|
||||
atexit (close_stdout);
|
||||
|
||||
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
|
||||
|
||||
Reference in New Issue
Block a user