[kaffe] Thread handling in Kaffe
Dalibor Topic
robilad@yahoo.com
Wed Feb 26 01:20:01 2003
--0-2007237832-1046251285=:86502
Content-Type: text/plain; charset=us-ascii
Content-Id:
Content-Disposition: inline
hi Tim, hi Calvin,
--- Timothy Stack <stack@cs.utah.edu> wrote:
>
> 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();
> }
thanks, I've checked it in.
I've also attached a test case, that shows the
'dangling <defuncts>' behaviour. The defuncts go away
when I Ctrl-C out of kaffe (which lets me run between
700-1000 processes before forkAndExec fails), since
kaffe hangs. So does JDK 1.4.1_01 on linux, with the
nasty side effect that the processes don't go away
when I Ctrl-C out of it. I have to manually remove
them. Ugh.
cheers,
dalibor topic
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--0-2007237832-1046251285=:86502
Content-Type: application/octet-stream; name="Test.java"
Content-Transfer-Encoding: base64
Content-Description: Test.java
Content-Disposition: attachment; filename="Test.java"
cHVibGljIGNsYXNzIFRlc3QgewoKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWlu
IChTdHJpbmcgW10gYXJncykgewoJCWludCBpID0gMDsKCQl0cnkgewoJCQlm
b3IoaT0wIDsgaSA8IDEwMDAwOyArK2kpIHsKCQkJCVByb2Nlc3MgcCA9IFJ1
bnRpbWUuZ2V0UnVudGltZSgpLmV4ZWMoImVjaG8gSGVsbyBXb3JsZCIpOwoK
CQkJCXAuZGVzdHJveSgpOwoJCQl9CgkJfQoJCWNhdGNoKEV4Y2VwdGlvbiBl
KSB7CgkJCWUucHJpbnRTdGFja1RyYWNlKCk7CgkJfQoJCVN5c3RlbS5vdXQu
cHJpbnRsbigicmFuICIgKyBpICsgIiBwcm9jZXNzZXMiKTsKCX0JCn0K
--0-2007237832-1046251285=:86502--