Changeset 1198 for trunk/src/kash/trap.c
- Timestamp:
- Oct 6, 2007, 11:19:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/trap.c
r809 r1198 102 102 103 103 if (is_number(p)) 104 return number(p );104 return number(psh, p); 105 105 106 106 if (strcasecmp(p, "exit") == 0 ) … … 190 190 while (*ap) { 191 191 if (is_number(*ap)) 192 signo = number( *ap);192 signo = number(psh, *ap); 193 193 else 194 194 signo = signame_to_signum(*ap); … … 264 264 switch (signo) { 265 265 case SIGINT: 266 if (iflag || minusc || sflag== 0)266 if (iflag(psh) || minusc || sflag(psh) == 0) 267 267 action = S_CATCH; 268 268 break; 269 269 case SIGQUIT: 270 270 #ifdef DEBUG 271 if (debug )271 if (debug(psh)) 272 272 break; 273 273 #endif 274 274 /* FALLTHROUGH */ 275 275 case SIGTERM: 276 if (iflag )276 if (iflag(psh)) 277 277 action = S_IGN; 278 278 break; … … 280 280 case SIGTSTP: 281 281 case SIGTTOU: 282 if (mflag )282 if (mflag(psh)) 283 283 action = S_IGN; 284 284 break; … … 302 302 } 303 303 if (sigact == SIG_IGN) { 304 if (mflag && (signo == SIGTSTP ||304 if (mflag(psh) && (signo == SIGTSTP || 305 305 signo == SIGTTIN || signo == SIGTTOU)) { 306 306 tsig = S_IGN; /* don't hard ignore these */
Note:
See TracChangeset
for help on using the changeset viewer.