You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit bb13a224451c8fbf0b9600bbc3d58cad55b3aec9)
setpgrp PID,PGRP

Sets the current process group for the specified PID, 0 for the current process. Raises an exception when used on a machine that doesn't implement POSIX setpgid(2) or BSD setpgrp(2). If the arguments are omitted, it defaults to 0,0. Note that the BSD 4.2 version of setpgrp does not accept any arguments, so only setpgrp(0,0) is portable. See also POSIX::setsid().

Portability issues: "setpgrp" in perlport.