Changeset 1214 for trunk/src/kash/trap.c
- Timestamp:
- Oct 7, 2007, 10:39:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/trap.c
r1208 r1214 33 33 */ 34 34 35 #ifdef HAVE_SYS_CDEFS_H 36 #include <sys/cdefs.h> 37 #endif 35 #if 0 38 36 #ifndef lint 39 #if 040 37 static char sccsid[] = "@(#)trap.c 8.5 (Berkeley) 6/5/95"; 41 38 #else 42 39 __RCSID("$NetBSD: trap.c,v 1.31 2005/01/11 19:38:57 christos Exp $"); 43 #endif44 40 #endif /* not lint */ 45 46 #include <signal.h> 47 #include <unistd.h> 41 #endif 42 48 43 #include <stdlib.h> 49 44 … … 112 107 #endif 113 108 for (i = 0; i < NSIG; ++i) 114 if (strcasecmp 109 if (strcasecmp(p, sys_signame[i]) == 0) 115 110 return i; 116 111 return -1; … … 246 241 */ 247 242 248 long 243 void 249 244 setsignal(shinstance *psh, int signo, int vforked) 250 245 { … … 297 292 * sigmode, so that we retry every time. 298 293 */ 299 return 0;294 return; 300 295 } 301 296 if (sigact == SH_SIG_IGN) { … … 310 305 } 311 306 if (tsig == S_HARD_IGN || tsig == action) 312 return 0;307 return; 313 308 switch (action) { 314 309 case S_DFL: sigact = SH_SIG_DFL; break; … … 318 313 if (!vforked) 319 314 *t = action; 320 s iginterrupt(signo, 1);321 return (long)sh_signal(psh, signo, sigact);315 sh_siginterrupt(psh, signo, 1); 316 sh_signal(psh, signo, sigact); 322 317 } 323 318
Note:
See TracChangeset
for help on using the changeset viewer.