Shell exit fixes

This commit is contained in:
crschnick
2023-08-16 23:42:39 +00:00
parent 267e2a6968
commit 6dd476a40a
5 changed files with 11 additions and 12 deletions

View File

@@ -1,13 +1,12 @@
package io.xpipe.core.process;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.util.concurrent.ExecutorService;
public interface ProcessControl extends Closeable, AutoCloseable {
public interface ProcessControl extends AutoCloseable {
@FunctionalInterface
interface ExceptionConverter {
@@ -37,7 +36,7 @@ public interface ProcessControl extends Closeable, AutoCloseable {
void write(byte[] b) throws IOException;
@Override
void close() throws IOException;
void close() throws Exception;
void kill() throws Exception;

View File

@@ -155,7 +155,7 @@ public class ConnectionFileSystem implements FileSystem {
// Since we are only closing, just swallow all exceptions
try {
shellControl.close();
} catch (IOException ignored) {
} catch (Exception ignored) {
}
}
}