Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-04-21 04:03:36 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2007-04-21 04:03:36 +0400
commit54e7ffb3a405ab058d12fbed9a63314ba996be90 (patch)
tree8e78848fb5cf60d0455feec2e68de6e41c0e5775 /libbb/error_msg_and_die.c
parent5f786c24e4a80d5341f7a7449df5b32ec2dd440a (diff)
hush: begin fixing non-functional job control
Diffstat (limited to 'libbb/error_msg_and_die.c')
-rw-r--r--libbb/error_msg_and_die.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbb/error_msg_and_die.c b/libbb/error_msg_and_die.c
index 4115046c2..20d971591 100644
--- a/libbb/error_msg_and_die.c
+++ b/libbb/error_msg_and_die.c
@@ -10,14 +10,16 @@
#include "libbb.h"
int die_sleep;
-#if ENABLE_FEATURE_PREFER_APPLETS
+#if ENABLE_FEATURE_PREFER_APPLETS || ENABLE_HUSH
jmp_buf die_jmp;
#endif
void xfunc_die(void)
{
if (die_sleep) {
- if (ENABLE_FEATURE_PREFER_APPLETS && die_sleep < 0) {
+ if ((ENABLE_FEATURE_PREFER_APPLETS || ENABLE_HUSH)
+ && die_sleep < 0
+ ) {
/* Special case. We arrive here if NOFORK applet
* calls xfunc, which then decides to die.
* We don't die, but jump instead back to caller.