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