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


Ignore:
Timestamp:
Oct 10, 2007, 4:32:54 AM (18 years ago)
Author:
bird
Message:

shfile_cloexec. signal types.

File:
1 edited

Legend:

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

    r1233 r1240  
    8282//int pendingsigs;              /* indicates some signal received */
    8383
    84 static int getsigaction(shinstance *, int, sh_sig_t *);
     84static int getsigaction(shinstance *, int, shsig_t *);
    8585
    8686/*
     
    245245{
    246246        int action;
    247         sh_sig_t sigact = SH_SIG_DFL;
     247        shsig_t sigact = SH_SIG_DFL;
    248248        char *t, tsig;
    249249
     
    321321 */
    322322static int
    323 getsigaction(shinstance *psh, int signo, sh_sig_t *sigact)
    324 {
    325         struct sh_sigaction sa;
    326 
    327         if (sh_sigaction(signo, NULL, &sa) == -1)
     323getsigaction(shinstance *psh, int signo, shsig_t *sigact)
     324{
     325        struct shsigaction sa;
     326
     327        if (sh_sigaction(psh, signo, NULL, &sa) == -1)
    328328                return 0;
    329         *sigact = (sh_sig_t)sa.sh_handler;
     329        *sigact = (shsig_t)sa.sh_handler;
    330330        return 1;
    331331}
Note: See TracChangeset for help on using the changeset viewer.