Changeset 1203 for trunk/src/kash/trap.c


Ignore:
Timestamp:
Oct 7, 2007, 3:39:01 AM (18 years ago)
Author:
bird
Message:

converted a few more files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/trap.c

    r1202 r1203  
    401401        for (;;) {
    402402                for (i = 1 ; ; i++) {
    403                         if (gotsig[i - 1])
     403                        if (psh->gotsig[i - 1])
    404404                                break;
    405405                        if (i >= NSIG)
    406406                                goto done;
    407407                }
    408                 gotsig[i - 1] = 0;
    409                 savestatus=exitstatus;
     408                psh->gotsig[i - 1] = 0;
     409                savestatus=psh->exitstatus;
    410410                evalstring(psh, trap[i], 0);
    411                 exitstatus=savestatus;
     411                psh->exitstatus=savestatus;
    412412        }
    413413done:
    414         pendingsigs = 0;
     414        psh->pendingsigs = 0;
    415415}
    416416
Note: See TracChangeset for help on using the changeset viewer.