| starval = vlook("*")->val; |
| while(ntrap) for(i = 0;i!=NSIG;i++) while(trap[i]){ |
| if(getpid()!=mypid) Exit(getstatus()); |
| trapreq = vlook(Signame[i]); |
| start(trapreq->fn, trapreq->pc, (struct var *)0); |
| runq->local = newvar(strdup("*"), runq->local); |
| runq->local->val = copywords(starval, (struct word *)0); |
| runq->local->changed = 1; |
| runq->redir = runq->startredir = 0; |
| else if(i==SIGINT || i==SIGQUIT){ |
| * run the stack down until we uncover the |
| * command reading loop. Xreturn will exit |
| * if there is none (i.e. if this is not |
| while(!runq->iflag) Xreturn(); |