Changeset 1208 in kBuild for trunk/src/kash/redir.c
- Timestamp:
- Oct 7, 2007 5:33:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/redir.c
r1207 r1208 67 67 #include "memalloc.h" 68 68 #include "error.h" 69 #include "shinstance.h" 69 70 70 71 … … 273 274 if (forkshell(psh, (struct job *)NULL, (union node *)NULL, FORK_NOJOB) == 0) { 274 275 shfile_close(&psh->fdtab, pip[0]); 275 s ignal(SIGINT,SIG_IGN);276 s ignal(SIGQUIT,SIG_IGN);277 s ignal(SIGHUP,SIG_IGN);276 sh_signal(psh, SIGINT, SH_SIG_IGN); 277 sh_signal(psh, SIGQUIT, SH_SIG_IGN); 278 sh_signal(psh, SIGHUP, SH_SIG_IGN); 278 279 #ifdef SIGTSTP 279 s ignal(SIGTSTP,SIG_IGN);280 #endif 281 s ignal(SIGPIPE,SIG_DFL);280 sh_signal(psh, SIGTSTP, SH_SIG_IGN); 281 #endif 282 sh_signal(psh, SIGPIPE, SH_SIG_DFL); 282 283 if (redir->type == NHERE) 283 284 xwrite(psh, pip[1], redir->nhere.doc->narg.text, len); 284 285 else 285 286 expandhere(psh, redir->nhere.doc, pip[1]); 286 _exit(0);287 sh__exit(psh, 0); 287 288 } 288 289 out:
Note:
See TracChangeset
for help on using the changeset viewer.