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


Ignore:
Timestamp:
Oct 7, 2007, 10:39:58 PM (18 years ago)
Author:
bird
Message:

some more cleanup.

File:
1 edited

Legend:

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

    r1208 r1214  
    3333 */
    3434
    35 #ifdef HAVE_SYS_CDEFS_H
    36 #include <sys/cdefs.h>
    37 #endif
     35#if 0
    3836#ifndef lint
    39 #if 0
    4037static char sccsid[] = "@(#)trap.c      8.5 (Berkeley) 6/5/95";
    4138#else
    4239__RCSID("$NetBSD: trap.c,v 1.31 2005/01/11 19:38:57 christos Exp $");
    43 #endif
    4440#endif /* not lint */
    45 
    46 #include <signal.h>
    47 #include <unistd.h>
     41#endif
     42
    4843#include <stdlib.h>
    4944
     
    112107#endif
    113108        for (i = 0; i < NSIG; ++i)
    114                 if (strcasecmp (p, sys_signame[i]) == 0)
     109                if (strcasecmp(p, sys_signame[i]) == 0)
    115110                        return i;
    116111        return -1;
     
    246241 */
    247242
    248 long
     243void
    249244setsignal(shinstance *psh, int signo, int vforked)
    250245{
     
    297292                         * sigmode, so that we retry every time.
    298293                         */
    299                         return 0;
     294                        return;
    300295                }
    301296                if (sigact == SH_SIG_IGN) {
     
    310305        }
    311306        if (tsig == S_HARD_IGN || tsig == action)
    312                 return 0;
     307                return;
    313308        switch (action) {
    314309                case S_DFL:     sigact = SH_SIG_DFL;    break;
     
    318313        if (!vforked)
    319314                *t = action;
    320         siginterrupt(signo, 1);
    321         return (long)sh_signal(psh, signo, sigact);
     315        sh_siginterrupt(psh, signo, 1);
     316        sh_signal(psh, signo, sigact);
    322317}
    323318
Note: See TracChangeset for help on using the changeset viewer.