mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
runcon: fix inconsistent exit status upon write error
* src/runcon.c (main): Call initialize_exit_failure(),
so we use an appropriate exit status upon failure to close stdout.
This should have been part of recent commit ea3ee6df.
* tests/misc/help-version.sh: Adjust test case accordingly.
This commit is contained in:
1 parent
f69743604b
commit
4c1d30771d
2 files changed
+2
No files matched your search
@@ -122,6 +122,7 @@ main (int argc, char **argv)
|
||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||
textdomain (PACKAGE);
|
||||
|
||||
initialize_exit_failure (EXIT_CANCELED);
|
||||
atexit (close_stdout);
|
||||
|
||||
while (true)
|
||||
|
||||
@@ -26,6 +26,7 @@ expected_failure_status_chroot=125
|
||||
expected_failure_status_env=125
|
||||
expected_failure_status_nice=125
|
||||
expected_failure_status_nohup=125
|
||||
expected_failure_status_runcon=125
|
||||
expected_failure_status_stdbuf=125
|
||||
expected_failure_status_timeout=125
|
||||
expected_failure_status_printenv=2
|
||||
|
||||
Reference in new issue
Block a user