is set to indicate the error.
.SH ERRORS
.TP
-.BR EPERM .
-The process group ID of any process
-equals the PID of the calling process.
+.B EPERM
+The process group ID of any process equals the PID of the calling process.
Thus, in particular,
.BR setsid ()
fails if the calling process is already a process group leader.