mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-24 16:40:58 -04:00
Shell exit fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user