/freebsd-11-stable/bin/pkill/tests/ |
H A D | pgrep-g_test.sh | 8 name="pgrep -g <pgrp>" 9 pgrp=`ps -o tpgid -p $$ | tail -1` 15 pid=`pgrep -f -g $pgrp $sleep`
|
H A D | pkill-g_test.sh | 8 name="pkill -g <pgrp>" 9 pgrp=`ps -o tpgid -p $$ | tail -1` 14 pkill -f -g $pgrp $sleep
|
/freebsd-11-stable/sys/sys/ |
H A D | sigio.h | 40 * to the proc or pgrp so that the entire list may be revoked when the 49 struct pgrp *siu_pgrp; /* (c) process group to receive ... */
|
H A D | tty.h | 47 struct pgrp; 126 struct pgrp *t_pgrp; /* (t) Foreground process group. */ 164 void tty_rel_pgrp(struct tty *tp, struct pgrp *pgrp);
|
H A D | proc.h | 97 struct pgrp { struct 98 LIST_ENTRY(pgrp) pg_hash; /* (e) Hash chain. */ 99 LIST_HEAD(, proc) pg_members; /* (m + e) Pointer to pgrp members. */ 569 LIST_ENTRY(proc) p_pglist; /* (g + e) List of processes in pgrp. */ 645 struct pgrp *p_pgrp; /* (c + e) Pointer to process group. */ 947 extern LIST_HEAD(pgrphashhead, pgrp) *pgrphashtbl; 975 struct pgrp *pgfind(pid_t); /* Find process group by id. */ 1008 int enterpgrp(struct proc *p, pid_t pgid, struct pgrp *pgrp, 1010 int enterthispgrp(struct proc *p, struct pgrp *pgr [all...] |
H A D | signalvar.h | 308 struct pgrp; 372 void pgsignal(struct pgrp *pgrp, int sig, int checkctty, ksiginfo_t *ksi);
|
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | iosignal.c | 103 int pgrp, on = 1; 106 pgrp = getpid(); 107 if (ioctl(rio->fd, FIOSSAIOOWN, (char *)&pgrp) == -1) 140 int pgrp, on = 1; 148 pgrp = -getpid(); 149 if (ioctl(rio->fd, FIOSETOWN, (char*)&pgrp) == -1) 219 int pgrp; 253 pgrp = -getpid(); 255 pgrp = getpid(); 259 if (ioctl(fd, SIOCSPGRP, (char *)&pgrp) [all...] |
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-nextstep.c | 75 int tcsetpgrp(int fd, pid_t pgrp) argument 77 return (ioctl(fd, TIOCSPGRP, &pgrp));
|
/freebsd-11-stable/sys/kern/ |
H A D | kern_proc.c | 105 MALLOC_DEFINE(M_PGRP, "pgrp", "process group header"); 110 static void doenterpgrp(struct proc *, struct pgrp *); 111 static void orphanpg(struct pgrp *pg); 116 static void pgadjustjobc(struct pgrp *pgrp, int entering); 117 static void pgdelete(struct pgrp *); 377 struct pgrp * 381 register struct pgrp *pgrp; local 385 LIST_FOREACH(pgrp, PGRPHAS 510 LIST_INSERT_HEAD(PGRPHASH(pgid), pgrp, pg_hash); local 673 fixjobc(struct proc *p, struct pgrp *pgrp, int entering) argument 836 register struct pgrp *pgrp; local [all...] |
H A D | kern_prot.c | 335 struct pgrp *pgrp; local 338 struct pgrp *newpgrp; 342 pgrp = NULL; 344 newpgrp = malloc(sizeof(struct pgrp), M_PGRP, M_WAITOK | M_ZERO); 349 if (p->p_pgid == p->p_pid || (pgrp = pgfind(p->p_pid)) != NULL) { 350 if (pgrp != NULL) 351 PGRP_UNLOCK(pgrp); 386 int pgid; /* target pgrp id */ 395 struct pgrp *pgr local [all...] |
H A D | kern_sig.c | 1693 struct pgrp *pgrp; local 1727 pgrp = td->td_proc->p_pgrp; 1728 PGRP_LOCK(pgrp); 1730 pgrp = pgfind(pgid); 1731 if (pgrp == NULL) { 1737 LIST_FOREACH(p, &pgrp->pg_members, p_pglist) { 1754 PGRP_UNLOCK(pgrp); 1926 struct pgrp *pgrp; local 1944 pgsignal(struct pgrp *pgrp, int sig, int checkctty, ksiginfo_t *ksi) argument [all...] |
H A D | kern_descrip.c | 958 struct pgrp *pg = (sigio)->sio_pgrp; 979 * the proc or pgrp struct for the list manipulation. 985 struct pgrp *pg; 996 * to a single proc or pgrp. 1011 ("Proc sigio in pgrp sigio list")); 1013 ("Bogus pgrp in sigio list")); 1046 struct pgrp *pgrp; local 1085 pgrp = NULL; 1087 pgrp [all...] |
/freebsd-11-stable/crypto/heimdal/kadmin/ |
H A D | kadm_conn.c | 88 static pid_t pgrp; variable 107 if(getpid() == pgrp) { 111 killpg(pgrp, sig); 190 pgrp = getpid(); 192 if(setpgid(0, pgrp) < 0)
|
/freebsd-11-stable/contrib/tnftp/src/ |
H A D | progressbar.c | 69 static pid_t pgrp = -1; local 71 if (pgrp == -1) 73 pgrp = getpgrp(); 75 pgrp = getpgrp(0); 78 return (tcgetpgrp(fileno(ttyout)) == pgrp);
|
/freebsd-11-stable/lib/libc/gen/ |
H A D | termios.c | 82 tcsetpgrp(int fd, pid_t pgrp) argument 86 s = pgrp;
|
/freebsd-11-stable/sys/ddb/ |
H A D | db_ps.c | 95 * pid ppid pgrp uid state wmesg wchan cmd 109 struct pgrp *pgrp; local 122 db_printf(" pid ppid pgrp uid state wmesg wchan cmd\n"); 124 db_printf(" pid ppid pgrp uid state wmesg wchan cmd\n"); 136 pgrp = p->p_pgrp; 138 pgrp != NULL ? pgrp->pg_id : 0,
|
/freebsd-11-stable/bin/sh/ |
H A D | jobs.c | 101 pid_t pgrp; /* process group of this job */ member in struct:job 121 static pid_t initialpgrp; /* pgrp of shell on invocation */ 251 pid_t pgrp; local 260 pgrp = jp->ps[0].pid; 262 tcsetpgrp(ttyfd, pgrp); 894 pid_t pgrp; local 925 pgrp = getpid(); 927 pgrp = jp->ps[0].pid; 928 if (setpgid(0, pgrp) == 0 && mode == FORK_FG && 931 if (tcsetpgrp(ttyfd, pgrp) < [all...] |
/freebsd-11-stable/contrib/tcsh/ |
H A D | sh.proc.c | 1766 * -1: leave tty alone; inherit pgrp from parent 1777 pid_t pgrp; local 1822 pgrp = pcurrjob ? pcurrjob->p_jobid : getpid(); 1855 pgetty(wanttty, pgrp); 1896 pgrp = pcurrjob ? pcurrjob->p_jobid : pid; 1897 if (setpgid(pid, pgrp) == -1 && errno == EPERM) { 1903 (void) setpgid(pid, pgrp = pid); 1948 setttypgrp(int pgrp) argument 1955 * pgrp ourselves. If that happens, then the process will be still 1963 if (tcgetpgrp(FSHTTY) != pgrp) { 1992 pgetty(int wanttty, pid_t pgrp) argument [all...] |
H A D | tc.os.h | 402 # define setpgid(pid, pgrp) setpgrp(pid, pgrp)
|
/freebsd-11-stable/lib/libkvm/ |
H A D | kvm_proc.c | 120 struct pgrp pgrp; local 276 if (KREAD(kd, (u_long)proc.p_pgrp, &pgrp)) { 277 _kvm_err(kd, kd->program, "can't read pgrp at %p", 281 kp->ki_pgid = pgrp.pg_id; 282 kp->ki_jobc = pgrp.pg_jobc; 283 if (KREAD(kd, (u_long)pgrp.pg_session, &sess)) { 285 pgrp.pg_session); 314 if (KREAD(kd, (u_long)tty.t_pgrp, &pgrp)) { 320 kp->ki_tpgid = pgrp [all...] |
/freebsd-11-stable/contrib/libreadline/examples/rlfe/ |
H A D | pty.c | 369 int pgrp; local 372 if (ioctl(f, TIOCGPGRP, (char *)&pgrp) != -1 || errno != EIO)
|
H A D | os.h | 139 # define killpg(pgrp,sig) kill( -(pgrp), sig)
|
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | inferior.h | 230 extern void terminal_init_inferior_with_pgrp (int pgrp);
|
H A D | inflow.c | 169 terminal_init_inferior_with_pgrp (int pgrp) 180 inferior_process_group = pgrp; 329 pgrp. */ 168 terminal_init_inferior_with_pgrp(int pgrp) argument
|
/freebsd-11-stable/crypto/openssh/contrib/aix/ |
H A D | buildbff.sh | 221 mkuser gecos='SSHD PrivSep User' login=false rlogin=false account_locked=true pgrp=$SSH_PRIVSEP_USER $SSH_PRIVSEP_USER
|