.Fa void
.Fc
.Sh DESCRIPTION
-.Fn Setpgid
+.Fn setpgid
sets the process group of the specified process
.Ar pid
to the specified
of the invoking process.
.Pp
.Sh RETURN VALUES
-.Fn Setpgid
+.Fn setpgid
returns 0 when the operation was successful.
If the request failed, -1 is returned and the global variable
.Va errno
indicates the reason.
.Sh ERRORS
-.Fn Setpgid
+.Fn setpgid
will fail and the process group will not be altered if:
.Bl -tag -width Er
.\" ===========