X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Ferror_msg_and_die.c;h=10d953513079726675ba41500a5f1492ead2e88e;hb=621204bbf6750f1ba3977b43bb35375ddda6b5ae;hp=842260b0f26762f5c6378c803bf5d759ebd15d1b;hpb=b1629b1b2abc17a6430e4173d64d7956784118e0;p=oweals%2Fbusybox.git diff --git a/libbb/error_msg_and_die.c b/libbb/error_msg_and_die.c index 842260b0f..10d953513 100644 --- a/libbb/error_msg_and_die.c +++ b/libbb/error_msg_and_die.c @@ -13,13 +13,16 @@ #include #include "libbb.h" +int die_sleep; + void bb_error_msg_and_die(const char *s, ...) { va_list p; va_start(p, s); - bb_verror_msg(s, p); + bb_verror_msg(s, p, NULL); va_end(p); - putc('\n', stderr); - exit(bb_default_error_retval); + if (die_sleep) + sleep(die_sleep); + exit(xfunc_error_retval); }