Home | History | Annotate | Download | only in src

Lines Matching defs:pgrp

54 #define JP_PGRP		4	/* print pgrp */
65 #define JF_FG 0x010 /* running in foreground (also has tty pgrp) */
81 pid_t pgrp; /* process group of job */
239 if (j->pgrp == 0)
242 mksh_killpg(j->pgrp, SIGHUP);
245 if (j->pgrp == 0)
248 mksh_killpg(j->pgrp, SIGCONT);
260 * Need to restore the tty pgrp to what it was when the
438 j->pgrp = 0;
476 if (j->pgrp == 0) {
478 j->pgrp = p->pid;
483 * set pgrp in both parent and child to deal with race
486 setpgid(p->pid, j->pgrp);
488 tcsetpgrp(tty_fd, j->pgrp);
729 if (j->pgrp == 0) {
738 mksh_killpg(j->pgrp, SIGCONT);
740 if (mksh_killpg(j->pgrp, sig) < 0) {
772 if (j->pgrp == 0) {
808 j->saved_ttypgrp : j->pgrp) < 0) {
816 j->saved_ttypgrp : j->pgrp), "failed",
827 if (j->state == PRUNNING && mksh_killpg(j->pgrp, SIGCONT) < 0) {
886 /* 0: short, 1: long, 2: pgrp */
1100 if (Flag(FMONITOR) && ttypgrp_ok && j->pgrp) {
1102 * Save the tty's current pgrp so it can be restored
1107 * pgrp, so naturally it sets its pgrp and gets hosed
1109 * has restored the tty's pgrp to that of the su
1447 shf_fprintf(shf, "%d\n", (int)(j->pgrp ? j->pgrp :
1561 if (j->pgrp && j->pgrp == job)