Source-Changes-D archive

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

Re: CVS commit: src/usr.bin/pkill



On Wed, Nov 21, 2012 at 01:36:01PM -0700, Warner Losh wrote:
> >> Is pkill() guaranteed to do an atomic traversal of the process list?
> >> So it will kill something that keeps using fork() to change its pid.
> > 
> > I don't think our libkvm offers that.
> 
> How could you guarantee this short of moving this into the kernel
> so you could do all the comparisons while keeping all forks from happening?

You probably can't ...
Even in the kernel it might be 'interesting'.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index