ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8510] - shutdown hook does not fire in forked java task under JDK1.4
Date Tue, 29 Oct 2002 04:35:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8510>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8510

shutdown hook does not fire in forked java task under JDK1.4





------- Additional Comments From luors@iii.org.tw  2002-10-29 04:35 -------
Both JDK 1.3.? (I don't know the exact version) and JDK 1.4.0
use the same code to destroy() a process.

JNIEXPORT void JNICALL
Java_java_lang_Win32Process_destroy(JNIEnv *env, jobject process)
{
    jboolean exc;
    jint handle = JNU_GetFieldByName(env, &exc, process, "handle", "I").i;
    if (exc) {
        return;
    }
    TerminateProcess((void *)handle, 1);
}

Maybe sometimes it returns before invoking ::TerminateProcess() ?

P.S. Is it legal to post the code here?

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message