Re: cvs commit: src/sys/kern kern_thr.c syscalls.master src/sys/sys

[ Available lists | Index of cvs-src | Month of Aug 2007 | Week of 20 Aug 2007 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Alfred Perlstein <alfred@freebsd.org>
Date
20 Aug 2007 18:49:27
Subject
Re: cvs commit: src/sys/kern kern_thr.c syscalls.master src/sys/sys
Message-ID
20070820184737.GJ87451@elvis.mu.org


[ Hide this part ]
* Matthew Dillon <dillon@apollo.backplane.com> [070820 11:43] wrote:
> We have a lwp_kill() system call that sends a signal to a thread within
> a process. It turns out to be fairly necessary for any sort of heavily
> integrated multi-threaded work. In our case we need it to be able to
> issue IPIs (aka SIGUSR1) to cpus within a SMP virtual kernel.
>
> int lwp_kill(pid_t pid, lwpid_t tid, int sig);
>
> -Matt

It's always bothered me that there wasn't a generation count
included in the kill(2) interface.

What do you think about that?

It would be useful for pidfiles to ensure that a recycled pid
doesn't get a program SIGwhatever'd.

--
- Alfred Perlstein


Elapsed time: 0.215 seconds