--- killpg.2.orig 2009-11-06 10:36:38.000000000 -0800 +++ killpg.2 2009-11-06 10:41:32.000000000 -0800 @@ -37,7 +37,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/types.h .In signal.h .Ft int .Fn killpg "pid_t pgrp" "int sig" @@ -76,21 +75,29 @@ The .Fa sig argument is not a valid signal number. +.It Bq Er EPERM +The sending process is not the super-user and one or more +of the target processes has an effective user ID different from that +of the sending process. .It Bq Er ESRCH No process can be found in the process group specified by .Fa pgrp . .It Bq Er ESRCH The process group was given as 0 but the sending process does not have a process group. -.It Bq Er EPERM -The sending process is not the super-user and one or more -of the target processes has an effective user ID different from that -of the sending process. .El +.Sh LEGACY SYNOPSIS +.Fd #include <sys/types.h> +.Fd #include <signal.h> +.Pp +The include file +.In sys/types.h +is necessary. .Sh SEE ALSO .Xr getpgrp 2 , .Xr kill 2 , -.Xr sigaction 2 +.Xr sigaction 2 , +.Xr compat 5 .Sh HISTORY The .Fn killpg