tech-kern archive

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

Re: Proposal: killpeer(2)



On Mon, 16 May 2011, Masao Uebayashi wrote:

> On Mon, May 16, 2011 at 12:27 AM, Thor Lancelot Simon 
> <tls%panix.com@localhost> wrote:
> > On Sat, May 14, 2011 at 04:16:54PM +0200, Emmanuel Dreyfus wrote:
> >> Thor Lancelot Simon <tls%panix.com@localhost> wrote:
> > The basic problem is that what's really wanted is a way to send a signal
> > to the other process associated with a particular resource, in this case
> > a datagram socket.
>
> How about adding fcntl(F_GETPEER) returning pid_t, then you can do
> kill(fcntl(fd, F_GETPEER))?

How about adding SCM_SIGNAL for sendmsg(2) functions, that allow a signal
to be sent to a socket address, subject to the usual permissions as per
kill(2)?  Since AF_LOCAL sockets are on the local machine only, the
necessary information should be available..

iain


Home | Main Index | Thread Index | Old Index