VirtualBox

Changeset 3437 in kBuild for trunk/src/kash/jobs.c


Ignore:
Timestamp:
Sep 3, 2020 1:52:14 PM (4 years ago)
Author:
bird
Message:

kash: refactoring evalcommand - complicated, part II.

File:
1 edited

Legend:

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

    r3435 r3437  
    807807int forkshell2(struct shinstance *psh, struct job *jp, union node *n, int mode,
    808808               int (*child)(struct shinstance *, void *, union node *),
    809                union node *nchild, void *argp, size_t arglen)
     809               union node *nchild, void *argp, size_t arglen,
     810               void (*setupchild)(struct shinstance *, struct shinstance *, void *))
    810811{
    811812        pid_t pid;
     
    816817        {
    817818                /* child */
    818                 (void)arglen;
    819819                forkchild(psh, jp, n, mode);
    820820                sh_exit(psh, child(psh, nchild, argp));
     
    827827        TRACE((psh, "Fork failed, errno=%d\n", errno));
    828828        INTON;
     829        (void)arglen;
     830        (void)setupchild;
    829831        error(psh, "Cannot fork");
    830832        return -1; /* won't get here */
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