X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Ferror_msg_and_die.c;h=10d953513079726675ba41500a5f1492ead2e88e;hb=621204bbf6750f1ba3977b43bb35375ddda6b5ae;hp=f25a1da32e008a4f0b5fb21cb12971bb4c2e6406;hpb=3538b9a8822421b7c8596a33a917dcf2f99c92b7;p=oweals%2Fbusybox.git diff --git a/libbb/error_msg_and_die.c b/libbb/error_msg_and_die.c index f25a1da32..10d953513 100644 --- a/libbb/error_msg_and_die.c +++ b/libbb/error_msg_and_die.c @@ -13,6 +13,8 @@ #include #include "libbb.h" +int die_sleep; + void bb_error_msg_and_die(const char *s, ...) { va_list p; @@ -20,5 +22,7 @@ void bb_error_msg_and_die(const char *s, ...) va_start(p, s); bb_verror_msg(s, p, NULL); va_end(p); - exit(bb_default_error_retval); + if (die_sleep) + sleep(die_sleep); + exit(xfunc_error_retval); }