-.\" $OpenBSD: setpgid.2,v 1.14 2013/05/08 14:19:44 jmc Exp $
+.\" $OpenBSD: setpgid.2,v 1.15 2014/05/24 12:15:43 millert Exp $
.\" $NetBSD: setpgid.2,v 1.8 1995/02/27 12:36:55 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\"
.\" @(#)setpgid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 8 2013 $
+.Dd $Mdocdate: May 24 2014 $
.Dt SETPGID 2
.Os
.Sh NAME
process.
.It Bq Er EPERM
The value of the
-.Fa pgid
+.Fa pgrp
argument is neither the PID of the process indicated by the
.Fa pid
argument nor the process group ID of an existing process group in