13 lines
512 B
Diff
13 lines
512 B
Diff
diff --git a/src/cmd/ksh93/sh/xec.c b/src/cmd/ksh93/sh/xec.c
|
|
--- a/src/cmd/ksh93/sh/xec.c
|
|
+++ b/src/cmd/ksh93/sh/xec.c
|
|
@@ -3529,7 +3529,7 @@ int sh_funscope(int argn, char *argv[],int(*fun)(void*),void *arg,int execflg)
|
|
}
|
|
if(jmpval)
|
|
r=shp->exitval;
|
|
- if(r>SH_EXITSIG && ((r&SH_EXITMASK)==SIGINT || ((r&SH_EXITMASK)==SIGQUIT)))
|
|
+ if(r>SH_EXITSIG && ((r&SH_EXITMASK)==SIGINT || ((r&SH_EXITMASK)==SIGQUIT) || (getenv("_AST_KSH_SIGNAL_BUBBLE"))))
|
|
kill(getpid(),r&SH_EXITMASK);
|
|
if(jmpval > SH_JMPFUN)
|
|
{
|