VirtualBox

Changeset 1237 in kBuild for trunk/src


Ignore:
Timestamp:
Oct 10, 2007 1:03:09 AM (17 years ago)
Author:
bird
Message:

logging.

File:
1 edited

Legend:

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

    r1233 r1237  
    197197    return -1;
    198198# else
     199    //fprintf(stderr, "kill(%d, %d)\n", pid, signo);
    199200    return kill(pid, signo);
    200201# endif
     
    211212    return -1;
    212213# else
     214    //fprintf(stderr, "killpg(%d, %d)\n", pgid, signo);
    213215    return killpg(pgid, signo);
    214216# endif
     
    260262pid_t sh_waitpid(shinstance *psh, pid_t pid, int *statusp, int flags)
    261263{
    262 #ifdef SH_PURE_STUB_MODE
    263     return -1;
    264 #elif defined(SH_STUB_MODE)
    265 # ifdef _MSC_VER
    266     return -1;
    267 # else
    268     return waitpid(pid, statusp, flags);
     264    *statusp = 0;
     265#ifdef SH_PURE_STUB_MODE
     266    return -1;
     267#elif defined(SH_STUB_MODE)
     268# ifdef _MSC_VER
     269    return -1;
     270# else
     271    pid = waitpid(pid, statusp, flags);
     272    //fprintf(stderr, "waitpid -> %d *statusp=%d (rc=%d) flags=%#x\n",  pid, *statusp, WEXITSTATUS(*statusp), flags);
     273    return pid;
    269274# endif
    270275#else
     
    402407    return -1;
    403408# else
    404     return setpgid(pid, pgid);
     409    int rc;
     410    rc = setpgid(pid, pgid);
     411    //fprintf(stderr, "setpgid(%d,%d) -> %d\n",  pid, pgid, rc);
     412    return rc;
    405413# endif
    406414#else
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