On Sun, May 15, 2011 at 12:05:59PM -0400, Thor Lancelot Simon wrote:
> On Mon, May 16, 2011 at 12:58:28AM +0900, Masao Uebayashi wrote:
> > 
> > How about adding fcntl(F_GETPEER) returning pid_t, then you can do
> > kill(fcntl(fd, F_GETPEER))?
> 
> There's still a race -- if your process sleeps between the fcntl
> and the kill system calls, you can kill the wrong process or nothing.

How is that different from pkill usage or pretty much any other case not
involving a directly related process?

Joerg

Reply via email to