aboutsummaryrefslogtreecommitdiff
path: root/libbb/fflush_stdout_and_exit.c
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2006-09-07 16:20:03 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2006-09-07 16:20:03 +0000
commita9801658ee4b7f5717d145818428452f864e1015 (patch)
treef85bbdf6cb572751dee639feb9896cad3503b924 /libbb/fflush_stdout_and_exit.c
parentb750dec40a4bf013f98658b46925117d9d1d4811 (diff)
downloadbusybox-a9801658ee4b7f5717d145818428452f864e1015.tar.gz
busybox-a9801658ee4b7f5717d145818428452f864e1015.tar.bz2
getty, sulogin: convert to using bb_msg for syslog output
Diffstat (limited to 'libbb/fflush_stdout_and_exit.c')
-rw-r--r--libbb/fflush_stdout_and_exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/fflush_stdout_and_exit.c b/libbb/fflush_stdout_and_exit.c
index 7e8152dd6..245f50864 100644
--- a/libbb/fflush_stdout_and_exit.c
+++ b/libbb/fflush_stdout_and_exit.c
@@ -20,5 +20,7 @@ void bb_fflush_stdout_and_exit(int retval)
if (fflush(stdout)) {
retval = bb_default_error_retval;
}
+ if (die_sleep)
+ sleep(die_sleep);
exit(retval);
}