aboutsummaryrefslogtreecommitdiff
path: root/libbb/perror_msg_and_die.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-03 02:56:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-03 02:56:00 +0000
commit9b1381fd2fb7179f731709542507015799f90a51 (patch)
tree66b3617e0b6ceed9c3123000104df0d78bf9bf2a /libbb/perror_msg_and_die.c
parentbb3d0fab3b46d64e93687bc30b405d0878eca296 (diff)
downloadbusybox-9b1381fd2fb7179f731709542507015799f90a51.tar.gz
convert calloc to xzalloc
fix sleep-on-die option
Diffstat (limited to 'libbb/perror_msg_and_die.c')
-rw-r--r--libbb/perror_msg_and_die.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/perror_msg_and_die.c b/libbb/perror_msg_and_die.c
index 2303ba211..7521e7157 100644
--- a/libbb/perror_msg_and_die.c
+++ b/libbb/perror_msg_and_die.c
@@ -20,7 +20,5 @@ void bb_perror_msg_and_die(const char *s, ...)
va_start(p, s);
bb_vperror_msg(s, p);
va_end(p);
- if (die_sleep)
- sleep(die_sleep);
- exit(xfunc_error_retval);
+ sleep_and_die();
}