X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Fherror_msg_and_die.c;h=230fe645a0e237e264d6a97c49e13fbbaac58102;hb=d7171c114028815df4e92f9c26875f1d60c6af2a;hp=f62ddd2ead30fff6dfdcfca6e84bab69153cec6a;hpb=40920825d59874cf285390434486e88c8498d2d8;p=oweals%2Fbusybox.git diff --git a/libbb/herror_msg_and_die.c b/libbb/herror_msg_and_die.c index f62ddd2ea..230fe645a 100644 --- a/libbb/herror_msg_and_die.c +++ b/libbb/herror_msg_and_die.c @@ -7,19 +7,14 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include -#include - #include "libbb.h" -void bb_herror_msg_and_die(const char *s, ...) +void FAST_FUNC bb_herror_msg_and_die(const char *s, ...) { va_list p; va_start(p, s); - bb_vherror_msg(s, p); + bb_verror_msg(s, p, hstrerror(h_errno)); va_end(p); - if (die_sleep) - sleep(die_sleep); - exit(xfunc_error_retval); + xfunc_die(); }