projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
style fixes
[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 f25a1da32e008a4f0b5fb21cb12971bb4c2e6406..10d953513079726675ba41500a5f1492ead2e88e 100644
(file)
--- a/
libbb/error_msg_and_die.c
+++ b/
libbb/error_msg_and_die.c
@@
-13,6
+13,8
@@
#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;
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);
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);
}
}