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 Nov 21, 2012, at 1:55 PM, David Laight wrote:
> 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'.
Agreed. It was a leading question. Even with help from the kernel, it would
be difficult....
Warner
Home |
Main Index |
Thread Index |
Old Index