VirtualBox

Changeset 1208 in kBuild for trunk/src/kash/redir.c


Ignore:
Timestamp:
Oct 7, 2007 5:33:41 PM (17 years ago)
Author:
bird
Message:

trap.c ++.

File:
1 edited

Legend:

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

    r1207 r1208  
    6767#include "memalloc.h"
    6868#include "error.h"
     69#include "shinstance.h"
    6970
    7071
     
    273274        if (forkshell(psh, (struct job *)NULL, (union node *)NULL, FORK_NOJOB) == 0) {
    274275                shfile_close(&psh->fdtab, pip[0]);
    275                 signal(SIGINT, SIG_IGN);
    276                 signal(SIGQUIT, SIG_IGN);
    277                 signal(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);
    278279#ifdef SIGTSTP
    279                 signal(SIGTSTP, SIG_IGN);
    280 #endif
    281                 signal(SIGPIPE, SIG_DFL);
     280                sh_signal(psh, SIGTSTP, SH_SIG_IGN);
     281#endif
     282                sh_signal(psh, SIGPIPE, SH_SIG_DFL);
    282283                if (redir->type == NHERE)
    283284                        xwrite(psh, pip[1], redir->nhere.doc->narg.text, len);
    284285                else
    285286                        expandhere(psh, redir->nhere.doc, pip[1]);
    286                 _exit(0);
     287                sh__exit(psh, 0);
    287288        }
    288289out:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette