On Tue, Oct 07, 2003 at 12:55:47PM -0701, Jacob Meuser wrote:
> On Tue, Oct 07, 2003 at 12:01:11PM -0700, Larry Price wrote:
> > in the output of ps; wchan is the address of the event flag on which 
> > the process is waiting
> > 
> > from the OS X man page: (freebsd is same)
> 
> Same with OpenBSD.

I've got all that other stuff.  I even said myself the full name of wchan.
This is what I was looking for:
> where you will also find select(2), poll(2),
> wait(2), wait4(2) etc ...

I don't have them on my linux system, but I do on my solaris box.  I
also have some better words to search for on google.

> Sorry, couldn't resist.
No, no! Thank you Jacob!

By the way, occasionally we have discussed killing a process that won't
die.  I don't have an unkillable process, but in my search for learning
about wchan, I discovered this thread portion:
http://mail-index.netbsd.org/tech-kern/2002/11/08/0011.html

I've read, but not actually done, that gdb and probably other debuggers
can attach to running processes.  So the thread above tells someone to
load ddb run a wakeup() function on the waiting channel.  I suppose one
might also be able to attach to a process sitting on a wait channel and
do something similar.  Then he mentions for kernel space one could write
a simple lkm that would do the same thing, compiled and run on the fly,
source code sitting around, but that was beyond his immediate
experience.

http://mail-index.netbsd.org/tech-kern/2002/11/
Messages with subject: "Killing the unkillable" starting 11/08/02.

Cory

-- 
Cory Petkovsek                                       Adapting Information
Adaptable IT Consulting                                Technology to your   
(541) 914-8417                                                   business
[EMAIL PROTECTED]                                  www.AdaptableIT.com
_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to