aboutsummaryrefslogtreecommitdiff
path: root/libbb/fflush_stdout_and_exit.c
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-01-03 02:56:00 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-01-03 02:56:00 +0000
commit9b1381fd2fb7179f731709542507015799f90a51 (patch)
tree66b3617e0b6ceed9c3123000104df0d78bf9bf2a /libbb/fflush_stdout_and_exit.c
parentbb3d0fab3b46d64e93687bc30b405d0878eca296 (diff)
downloadbusybox-9b1381fd2fb7179f731709542507015799f90a51.tar.gz
busybox-9b1381fd2fb7179f731709542507015799f90a51.tar.bz2
convert calloc to xzalloc
fix sleep-on-die option
Diffstat (limited to 'libbb/fflush_stdout_and_exit.c')
-rw-r--r--libbb/fflush_stdout_and_exit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libbb/fflush_stdout_and_exit.c b/libbb/fflush_stdout_and_exit.c
index 456ce9513..6f44770c6 100644
--- a/libbb/fflush_stdout_and_exit.c
+++ b/libbb/fflush_stdout_and_exit.c
@@ -15,10 +15,7 @@
void fflush_stdout_and_exit(int retval)
{
- if (fflush(stdout)) {
- retval = xfunc_error_retval;
- }
- if (die_sleep)
- sleep(die_sleep);
+ if (fflush(stdout))
+ sleep_and_die();
exit(retval);
}