summaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 0cf2005ac..fa4a15236 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -476,7 +476,7 @@ void xprint_and_close_file(FILE *file)
476 fflush(stdout); 476 fflush(stdout);
477 // copyfd outputs error messages for us. 477 // copyfd outputs error messages for us.
478 if (bb_copyfd_eof(fileno(file), 1) == -1) 478 if (bb_copyfd_eof(fileno(file), 1) == -1)
479 exit(xfunc_error_retval); 479 sleep_and_die();
480 480
481 fclose(file); 481 fclose(file);
482} 482}