Lines Matching refs:chp
628 struct subprocess *chp; local
630 for (chp = children; chp != NULL; chp = chp->next)
631 dbglog(" script %s, pid %d", chp->prog, chp->pid);
1753 struct subprocess *chp; local
1757 chp = (struct subprocess *) malloc(sizeof(struct subprocess));
1758 if (chp == NULL) {
1761 chp->pid = pid;
1762 chp->prog = prog;
1763 chp->done = done;
1764 chp->arg = arg;
1765 chp->next = children;
1766 children = chp;
1778 struct subprocess *chp; local
1780 for (chp = children; chp != NULL; chp = chp->next) {
1782 dbglog("sending SIGTERM to process %d", chp->pid);
1783 kill(chp->pid, SIGTERM);
1796 struct subprocess *chp, **prevp; in reap_kids() local
1801 for (prevp = &children; (chp = *prevp) != NULL; prevp = &chp->next) { in reap_kids()
1802 if (chp->pid == pid) { in reap_kids()
1804 *prevp = chp->next; in reap_kids()
1810 (chp? chp->prog: "??"), pid, WTERMSIG(status)); in reap_kids()
1813 (chp? chp->prog: "??"), pid, in reap_kids()
1815 if (chp && chp->done) in reap_kids()
1816 (*chp->done)(chp->arg); in reap_kids()
1817 if (chp) in reap_kids()
1818 free(chp); in reap_kids()