Changeset 3467 for trunk/src


Ignore:
Timestamp:
Sep 15, 2020, 11:30:11 PM (5 years ago)
Author:
bird
Message:

kash: subshellstatus build fixes for forked mode.

Location:
trunk/src/kash
Files:
2 edited

Legend:

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

    r3466 r3467  
    15441544 * @param   sts         Subshell status structure, NULL if progress.
    15451545 */
    1546 int sh_add_child(shinstance *psh, shpid pid, void *hChild, shsubshellstatus *sts)
     1546int sh_add_child(shinstance *psh, shpid pid, void *hChild, struct shsubshellstatus *sts)
    15471547{
    15481548    /* get a free table entry. */
     
    17891789        {
    17901790            DWORD dwExitCode = 127;
    1791 #ifndef SH_FORKED_MODE
     1791# ifndef SH_FORKED_MODE
    17921792            if (psh->children[i].subshellstatus)
    17931793            {
     
    18011801            }
    18021802            else
    1803 #endif
     1803# endif
    18041804            if (GetExitCodeProcess(hChild, &dwExitCode))
    18051805            {
     
    18141814
    18151815        /* close and remove */
     1816# ifndef SH_FORKED_MODE
    18161817        if (psh->children[i].subshellstatus)
    18171818        {
     
    18201821        }
    18211822        else
     1823# endif
    18221824        {
    18231825            rc = CloseHandle(psh->children[i].hChild);
     
    18291831            psh->children[i] = psh->children[psh->num_children];
    18301832        psh->children[psh->num_children].hChild = NULL;
     1833# ifndef SH_FORKED_MODE
    18311834        psh->children[psh->num_children].subshellstatus = NULL;
     1835# endif
    18321836    }
    18331837
  • trunk/src/kash/shinstance.h

    r3461 r3467  
    516516
    517517/* wait / process */
    518 int sh_add_child(shinstance *psh, shpid pid, void *hChild, shsubshellstatus *sts);
     518int sh_add_child(shinstance *psh, shpid pid, void *hChild, struct shsubshellstatus *sts);
    519519#ifdef _MSC_VER
    520520#   include <process.h>
Note: See TracChangeset for help on using the changeset viewer.