diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-03 02:56:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-03 02:56:00 +0000 |
commit | 9b1381fd2fb7179f731709542507015799f90a51 (patch) | |
tree | 66b3617e0b6ceed9c3123000104df0d78bf9bf2a /libbb/fflush_stdout_and_exit.c | |
parent | bb3d0fab3b46d64e93687bc30b405d0878eca296 (diff) | |
download | busybox-w32-9b1381fd2fb7179f731709542507015799f90a51.tar.gz busybox-w32-9b1381fd2fb7179f731709542507015799f90a51.tar.bz2 busybox-w32-9b1381fd2fb7179f731709542507015799f90a51.zip |
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.c | 7 |
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 @@ | |||
15 | 15 | ||
16 | void fflush_stdout_and_exit(int retval) | 16 | void fflush_stdout_and_exit(int retval) |
17 | { | 17 | { |
18 | if (fflush(stdout)) { | 18 | if (fflush(stdout)) |
19 | retval = xfunc_error_retval; | 19 | sleep_and_die(); |
20 | } | ||
21 | if (die_sleep) | ||
22 | sleep(die_sleep); | ||
23 | exit(retval); | 20 | exit(retval); |
24 | } | 21 | } |