Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setpgrp(2) — A/UX 0.7

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exec(2)

fork(2)

getpid(2)

intro(2)

kill(2)

setcompat(2)

signal(3)



     setpgrp(2)                                             setpgrp(2)



     NAME
          setpgrp - set process group ID

     SYNOPSIS
          int setpgrp ()
          or
          setpgrp(pid, pgrp)
          int pid, pgrp;

     DESCRIPTION
          The first form of setpgrp sets the process group ID of the
          calling process to the process ID of the calling process and
          returns the new process group ID.

          The second form of setpgrp is available when the process has
          requested 4.2 BSD compatiblity.  setpgrp will then set the
          process group of the specified process pid to the specified
          pgrp.  If pid is zero, then the call applies to the current
          process.

          If the invoker is not the super-user, then the affected
          process must have the same effective user-id as the invoker
          or be a descendant of the invoking process.

     RETURN VALUE
          setpgrp returns the value of the new process group ID.

     SEE ALSO
          exec(2), fork(2), getpid(2), intro(2), kill(2),
          setcompat(2), signal(3).

























     Page 1                                        (last mod. 1/14/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026