mirror of
https://github.com/corda/corda.git
synced 2025-06-16 06:08:13 +00:00
implement Runtime.addShutdownHook and Thread.setDaemon; avoid segfaults due to an application calling e.g. CallStaticBooleanMethod when it really meant CallStaticVoidMethod
This commit is contained in:
@ -59,6 +59,8 @@ public class Runtime {
|
||||
return new MyProcess(process[0], (int) process[1], (int) process[2], (int) process[3]);
|
||||
}
|
||||
|
||||
public native void addShutdownHook(Thread t);
|
||||
|
||||
private static native void exec(String[] command, long[] process);
|
||||
|
||||
private static native int exitValue(long pid);
|
||||
|
Reference in New Issue
Block a user