Searched refs:pgid (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/scripting/
H A Dtst.pgid.d41 printf("The pgid is %d\n", $pgid);
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dspawnveg.c27 * pgid <0 setsid() [session group leader]
30 * >1 setpgid(0,pgid) [join process group]
48 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid)
56 if (pgid)
58 if (pgid <= 1)
59 pgid = 0;
60 if (err = posix_spawnattr_setpgroup(&attr, pgid))
99 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid)
101 return spawnve(pgid ? P_DETACH : P_NOWAIT, path, argv, envv ? envv : environ);
115 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid)
[all...]
H A Dsetpgid.c62 setpgid(pid_t pid, pid_t pgid)
65 return(setpgrp(pid, pgid));
70 if ((pid == 0 || pid == caller) && (pgid == 0 || pgid == caller))
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dpgrpsys.c72 setpgid(pid_t pid, pid_t pgid) argument
74 return (syscall(SYS_pgrpsys, 5, pid, pgid));
/illumos-gate/usr/src/uts/common/syscall/
H A Dpgrpsys.c44 setpgrp(int flag, int pid, int pgid) argument
109 if (pgid == 0)
110 pgid = p->p_pid;
111 else if (pgid < 0 || pgid >= maxpid) {
116 if (p->p_pgrp == pgid) {
119 } else if (p->p_pid == pgid) {
131 if ((q = pgfind(pgid)) == NULL ||
H A Dsigqueue.c69 pid_t pgid; local
72 pgid = ttoproc(curthread)->p_pgrp;
74 pgid = -pid;
78 for (p = pgfind(pgid); p && !error; p = p->p_pglink) {
H A Dcorectl.c500 pid_t pgid; local
503 pgid = curproc->p_pgrp;
505 pgid = -pid;
508 for (p = pgfind(pgid); p != NULL; p = p->p_pglink) {
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Pg/
H A DPg.pm384 my $pgid = shift;
385 my $pg = _pg_get($self, $pgid) or return;
463 my $pgid = shift;
464 my $pg = _pg_get($self, $pgid) or return;
876 my $pgid = shift;
878 return unless defined $pgid;
881 return ($pgtree->{$pgid});
1051 foreach my $pgid (keys %$pgtree) {
1052 next if $pgid == $ROOT_ID;
1053 my $pg = $pgtree->{$pgid};
[all...]
/illumos-gate/usr/src/cmd/id/
H A Did.c60 static void pgid(gid_t);
168 pgid(gid);
170 pgid(gid);
183 pgid(gid);
318 pgid(gid_t gid) function
/illumos-gate/usr/src/cmd/oplhpd/
H A Doplhpd.c87 id_t pgid; local
93 pgid = getpgrp();
94 (void) kill(-pgid, SIGTERM);
/illumos-gate/usr/src/cmd/acpihpd/
H A Dacpihpd.c217 id_t pgid; local
223 pgid = getpgrp();
224 (void) kill(-pgid, SIGTERM);
/illumos-gate/usr/src/cmd/nohup/
H A Dnohup.c203 "\tnohup -g [-Fa] pgid [pgid ...]\n"));
673 pid_t pgid; local
678 pgid = strtol(argv[i], &end, 10);
682 * meaning, so don't let pgid be 0 or 1.
684 if (*end == '\0' && pgid > 1)
698 if (pgids[j] == pgid)
705 pgids[npgids++] = pgid;
720 if (kill(-pgid, SIGSTOP) == -1) {
722 "stop process group %d: %s\n"), pgid,
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dpgrp.c74 * equal to 'pgid'
241 * Return 1 if pgid is the process group ID of an existing process group
248 pgmembers(pgid)
249 register pid_t pgid;
255 for (prp = pgfind(pgid); prp; prp = prp->p_pglink)
256 if (prp->p_pid != pgid) {
H A Dpid.c362 pgfind_zone(pid_t pgid, zoneid_t zoneid) argument
369 pidp = pid_lookup(pgid);
374 if (zoneid == ALL_ZONES || pgid == 0 || p == NULL ||
382 * return the head of the list of processes whose process group ID is 'pgid',
386 pgfind(pid_t pgid) argument
394 return (pgfind_zone(pgid, zoneid));
572 * equal to 'pgid'
576 signal(pid_t pgid, int sig) argument
583 if (pgid == 0 || (pidp = pid_lookup(pgid))
[all...]
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dioctl.c148 pid_t pgid; local
163 (pgid = *((pid_t *)arg)) != 0 &&
164 pgid == getpid() &&
165 setpgid(0, pgid) == 0) {
/illumos-gate/usr/src/lib/libxcurses/h/posix/
H A Dmkslocal.h1100 #define M_PS_JFMT { m_textstr(4867, "pid,sid,pgid=PGRP", "I"),\
/illumos-gate/usr/src/cmd/su/
H A Dsu.c950 pid_t pgid; local
968 pgid = getpgid(pid);
978 (void) tcsetpgrp(fd, pgid);
983 (void) sigsend(P_PGID, pgid, SIGCONT);
/illumos-gate/usr/src/uts/common/disp/
H A Dts.c1238 pid_t pid, pgid, sid; local
1272 pgid = p->p_pgrp;
1290 pgid = stp->sd_pgidp->pid_id;
1296 on = pgid;
1298 off = pgid;
1303 pid, pgid, p);
/illumos-gate/usr/src/cmd/sh/
H A Djobs.c102 pgid2job(pid_t pgid) argument
106 for (jp = joblst; jp != 0 && jp->j_pid != pgid; jp = jp->j_nxtp)
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_event.c2060 long pgid; member in struct:a
2099 pid_t pgid; local
2111 long pgid; member in struct:a
2116 pgid = (pid_t)uap->pgid;
2163 au_uwrite(au_to_arg32(2, "pgid", pgid));
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Djobs.c160 int pgid = pgrp; local
162 return(ioctl(fd, TIOCSPGRP, &pgid));
1203 sfprintf(sfstderr,"ksh: job line %4d: post pid=%d critical=%d job=%d pid=%d pgid=%d savesig=%d join=%d\n",__LINE__,getpid(),job.in_critical,pw->p_job,
H A Dpath.c126 static pid_t _spawnveg(const char *path, char* const argv[], char* const envp[], pid_t pgid) argument
134 pid = spawnveg(path,argv,envp,pgid);
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgenunix.c298 struct pid pid, pgid, sid; local
344 mdb_vread(&pgid, sizeof (pgid), (uintptr_t)pr.p_pgidp);
376 pstat2ch(pr.p_stat), pid.pid_id, pr.p_ppid, pgid.pid_id,
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa.c5341 uint64_t pgid; local
5352 &pgid) == 0);
5362 VERIFY(nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, pgid) == 0);
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_proc.c3545 int pgid = -1; local
3576 * session, make its pgid the foreground process group before running
3624 * If we changed the foreground process group, restore the old pgid
3629 (void) IOP_CTL(mdb.m_term, TIOCSPGRP, &pgid);

Completed in 237 milliseconds

12