Blame SOURCES/ksh-20120801-alarmifs.patch
|
|
2642b8 |
--- ksh-20120801/src/cmd/ksh93/sh/init.c 2014-12-10 20:11:17.693446084 -0200
|
|
|
2642b8 |
+++ ksh-20120801/src/cmd/ksh93/sh/init.c 2014-12-10 20:11:24.753442619 -0200
|
|
|
2642b8 |
@@ -576,6 +576,7 @@ static char* get_ifs(register Namval_t*
|
|
|
2642b8 |
shp->ifstable[' '] = shp->ifstable['\t'] = S_SPACE;
|
|
|
2642b8 |
shp->ifstable['\n'] = S_NL;
|
|
|
2642b8 |
}
|
|
|
2642b8 |
+ shp->ifstable[0] = S_EOF;
|
|
|
2642b8 |
}
|
|
|
2642b8 |
return(value);
|
|
|
2642b8 |
}
|
|
|
2642b8 |
--- ksh-20120801/src/cmd/ksh93/bltins/alarm.c 2014-12-18 12:03:39.198461933 -0200
|
|
|
2642b8 |
+++ ksh-20120801/src/cmd/ksh93/bltins/alarm.c 2014-12-18 12:04:32.464421268 -0200
|
|
|
2642b8 |
@@ -130,6 +130,7 @@ void sh_timetraps(Shell_t *shp)
|
|
|
2642b8 |
{
|
|
|
2642b8 |
register struct tevent *tp, *tpnext;
|
|
|
2642b8 |
register struct tevent *tptop;
|
|
|
2642b8 |
+ char ifstable[256];
|
|
|
2642b8 |
while(1)
|
|
|
2642b8 |
{
|
|
|
2642b8 |
shp->sigflag[SIGALRM] &= ~SH_SIGALRM;
|
|
|
2642b8 |
@@ -141,7 +142,11 @@ void sh_timetraps(Shell_t *shp)
|
|
|
2642b8 |
{
|
|
|
2642b8 |
tp->flags &= ~L_FLAG;
|
|
|
2642b8 |
if(tp->action)
|
|
|
2642b8 |
+ {
|
|
|
2642b8 |
+ memcpy(ifstable,shp->ifstable,sizeof(ifstable));
|
|
|
2642b8 |
sh_fun(tp->action,tp->node,(char**)0);
|
|
|
2642b8 |
+ memcpy(shp->ifstable,ifstable,sizeof(ifstable));
|
|
|
2642b8 |
+ }
|
|
|
2642b8 |
tp->flags &= ~L_FLAG;
|
|
|
2642b8 |
if(!tp->flags)
|
|
|
2642b8 |
{
|
|
|
2642b8 |
|