VirtualBox

Changeset 3506 in kBuild


Ignore:
Timestamp:
Dec 15, 2021 10:54:57 PM (3 years ago)
Author:
bird
Message:

kash: Threat SIGBREAK as SIGINT.

File:
1 edited

Legend:

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

    r3480 r3506  
    399399
    400400    /* input.h/c */
    401     popallfiles(psh);
    402     while (psh->basepf.strpush)
    403         popstring(psh);
     401    if (psh->parsefile != NULL)
     402    {
     403        popallfiles(psh);
     404        while (psh->basepf.strpush)
     405            popstring(psh);
     406    }
    404407
    405408    /* jobs.h/c */
     
    10041007/*    fprintf(stderr, "sh_sig_common_handler: signo=%d:%s\n", signo, sys_signame[signo]); */
    10051008
     1009#ifdef _MSC_VER
     1010    /* We're treating SIGBREAK as if it was SIGINT for now: */
     1011    if (signo == SIGBREAK)
     1012        signo = SIGINT;
     1013#endif
     1014
    10061015    /*
    10071016     * No need to take locks if there is only one shell.
     
    11141123                signo, sys_signame[signo], g_sig_state[signo].sa.sa_handler, g_sig_state[signo].sa.sa_flags));
    11151124#ifdef _MSC_VER
     1125        /* Throw SIGBREAK in with SIGINT for now. */
     1126        if (signo == SIGINT)
     1127            signal(SIGBREAK, g_sig_state[signo].sa.sa_handler);
     1128
    11161129        if (signal(signo, g_sig_state[signo].sa.sa_handler) == SIG_ERR)
    11171130        {
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