Changeset 3434 for trunk/src/kash/jobs.c


Ignore:
Timestamp:
Sep 2, 2020, 10:19:25 PM (5 years ago)
Author:
bird
Message:

kash: refactoring evalcommand - complicated, part I.

File:
1 edited

Legend:

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

    r3433 r3434  
    8484STATIC void cmdlist(shinstance *, union node *, int);
    8585STATIC void cmdputs(shinstance *, const char *);
     86#ifdef KASH_USE_FORKSHELL2
     87static int forkparent(shinstance *psh, struct job *jp, union node *n, int mode, pid_t pid);
     88static void forkchild(shinstance *psh, struct job *jp, union node *n, int mode, int vforked);
     89#endif
    8690
    8791
     
    780784 */
    781785
     786#ifndef KASH_USE_FORKSHELL2
    782787int
    783788forkshell(shinstance *psh, struct job *jp, union node *n, int mode)
     
    799804        }
    800805}
    801 
     806#else /* KASH_USE_FORKSHELL2 */
    802807int forkshell2(struct shinstance *psh, struct job *jp, union node *n, int mode,
    803808               int (*child)(struct shinstance *, void *, union node *),
     
    825830        return -1; /* won't get here */
    826831}
    827 
     832#endif
     833
     834#ifdef KASH_USE_FORKSHELL2
     835static
     836#endif
    828837int
    829838forkparent(shinstance *psh, struct job *jp, union node *n, int mode, pid_t pid)
     
    853862}
    854863
     864#ifdef KASH_USE_FORKSHELL2
     865static
     866#endif
    855867void
    856868forkchild(shinstance *psh, struct job *jp, union node *n, int mode, int vforked)
Note: See TracChangeset for help on using the changeset viewer.