Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

setpgrp(1)

Name

setpgrp - set process group ID

Synopsis

setpgrp command [arg]...

Description

If the current process is not already a session leader, the setpgrp utility sets the process group ID and session ID to the current process ID and does an exec() of command and its argument(s), if any.

Operands

The following operands are supported:

command

The name of a command to be invoked.

arg

An option or argument to command.

Exit Status

The following exit values are returned:

1

Error executing the setpgrp utility or during exec() of command.

Otherwise, the exit status will be that of command.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

See Also

exec(2), setpgrp(2), attributes(7)