Remove usage of private JDK class "sun.misc.Signal" (REVISIT)

This commit is contained in:
josecoll 2019-05-14 18:35:19 +01:00
parent 804f8dc17b
commit cce16c8522

View File

@ -3,7 +3,7 @@
// trying to construct this from Capsule, so it is written in Java.
import com.typesafe.config.*;
import sun.misc.Signal;
//import sun.misc.Signal;
import java.io.File;
import java.nio.file.Path;
@ -216,9 +216,9 @@ public class CordaCaplet extends Capsule {
@Override
protected void liftoff() {
super.liftoff();
Signal.handle(new Signal("INT"), signal -> {
// Disable Ctrl-C for this process, so the child process can handle it in the shell instead.
});
// Signal.handle(new Signal("INT"), signal -> {
// // Disable Ctrl-C for this process, so the child process can handle it in the shell instead.
// });
}
private Boolean isJAR(File file) {