Hi Jason,

On Thu, Feb 04, 2010 at 04:01:33AM -0500, Jason A. Spiro wrote:

> Thanks for writing NetBSD pgrep/pkill.  When you have some spare time
> to carefully read ten messages and think, you please read through
> http://bugs.debian.org/558044 and suggest what you think would be a
> good algorithm for making -v safer?

I would chalk this down to experience.  In my youth I typed "killall" on an
ICL DRS6000 running SVR4 on the assumption that it would kill one process.
In fact it brought down the entire system, as designed, leaving me very
red faced.

So personally, having made the mistake and learned to be very careful about
killing things I don't see it as a big issue, although perhaps there is a 
good way to improve it and make it safer.

Unfortunately, I don't have any
good ideas in this area.  If you'd like to solicit ideas from the greater
NetBSD userbase, [email protected] would be a good place to ask.
They can be a noisy and opinionated bunch so liberal use of your mail
client's "Delete" facility would be advised, if you chose to go down this
route. :-)

Note that the suggestion of disallowing "-v" with a pattern could be 
problematic because it would prevent rare and strange, albeit meaningful
constructs such as:

        pkill -v "(init|syslogd|sh|randomprogram)"

Thank you for asking my opinion.

Cheers,
Andrew




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to