From 33207d64f58e44be7669926e7025bd54cd9e3d88 Mon Sep 17 00:00:00 2001 From: vda Date: Sat, 21 Apr 2007 00:03:36 +0000 Subject: hush: begin fixing non-functional job control git-svn-id: svn://busybox.net/trunk/busybox@18505 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/error_msg_and_die.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbb') 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. -- cgit v1.2.3-55-g6feb