tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposal: killpeer(2)



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.

Thor


Home | Main Index | Thread Index | Old Index