[haiku-development] Re: kill thread?

  • From: "Ingo Weinhold" <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 16 Aug 2012 14:22:08 +0200

Pete Goodeve wrote:
> Since when has 'kill <thread id>' not worked? ...And why?

I would say since hrev42116. The reason for this is that the semantics of 
kill() has been fixed, which is what the kill command uses to send the 
signal(s).

> I can kill a *team* by id, but if I just want to remove one of its 
> sub-threads,
> I get "no such process"! (Things like 'prio' still seem OK with threads, 
> though.)

prio is a tool that actually works on threads only, not teams (teams don't have 
a priority).

> I hadn't noticed not being able to do this until today, but I find it's
> true of all my various revs except the oldest one I have (r40241).
> 
> This could be rather a nuisance, as it's occasionally been a useful
> debugging aid.

There's process controller, if you want to actually kill the thread. I believe 
sending other signals to threads is indeed not easily possible anymore. If it 
is any consolation, it never was in BeOS.

CU, Ingo

Other related posts: