> Hi,

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() {
        sendSignal(getKillSignal());
        raw_stdout.close();
        raw_stderr.close();
        stdin_stream.close();
}

> Thank you,
> Calvin

tim stack

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to