[kaffe] Thread handling in Kaffe

Timothy Stack stack at cs.utah.edu
Fri Feb 21 09:01:01 PST 2003

> Hi,


> Thank you for the feedback.
> Instead, me friend debug our code and found out that the exception was 
> actually thrown here, not at thread creation or reuse. Is my mistake, sorry 
> :)
> Process p = Runtime.getRuntime().exec("ping -n 1 " + host);
> p.destroy;

Ah, now this is easier to fix.  It looks like destroy isn't closing the 
stdio streams it opens.

> Eventhough the process is destroy, you can see a lot of kaffe defunct error 
> message in the runnning process by doing ps -ae.

What are the messages?

> Has anyone encountered this before? Any work around for this?

Try Changing the destroy method in
libraries/javalib/kaffe/lang/UNIXProcess.java to look like this:

public void destroy() {

> Thank you,
> Calvin

tim stack

More information about the kaffe mailing list