projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get_terminal_width_height: do not pass insanely large values
[oweals/busybox.git]
/
libbb
/
error_msg_and_die.c
diff --git
a/libbb/error_msg_and_die.c
b/libbb/error_msg_and_die.c
index 842260b0f26762f5c6378c803bf5d759ebd15d1b..10d953513079726675ba41500a5f1492ead2e88e 100644
(file)
--- a/
libbb/error_msg_and_die.c
+++ b/
libbb/error_msg_and_die.c
@@
-13,13
+13,16
@@
#include <stdlib.h>
#include "libbb.h"
#include <stdlib.h>
#include "libbb.h"
+int die_sleep;
+
void bb_error_msg_and_die(const char *s, ...)
{
va_list p;
va_start(p, s);
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);
va_end(p);
- putc('\n', stderr);
- exit(bb_default_error_retval);
+ if (die_sleep)
+ sleep(die_sleep);
+ exit(xfunc_error_retval);
}
}