kill(2) man page: ESRCH

Sergey Kandaurov pluknet at gmail.com
Thu Mar 15 12:16:16 UTC 2012


On 15 March 2012 03:43, Ed Schouten <ed at 80386.nl> wrote:
> Hi all,
>
> Just a quick question. The kill(2) man page says:
>
>     The kill() system call will fail and no signal will be sent if:
>
>     [ESRCH]            The process id was given as 0 but the sending process
>                        does not have a process group.
>
> My question is: is this possible? I thought all processes have a process
> group. POSIX also doesn't mention anything about this case specifically.
> Shall I zap this?
>

man killpg(2) should probably be updated as well (and is somewhat
referenced from man kill(2):
      If pid is zero:
             The sig signal is sent to all processes whose group ID is equal
             to the process group ID of the sender, and for which the process
             has permission; this is a variant of killpg(2).
). Currently killpg(2) says:
     [ESRCH]            The process group was given as 0 but the sending
                        process does not have a process group.

-- 
wbr,
pluknet


More information about the freebsd-arch mailing list