fix(ssh): repair unbuilt relay native deps (#8686)
Co-authored-by: Orca <help@stably.ai> Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com> Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com> Co-authored-by: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com>
This commit is contained in:
co-authored by
Orca
Neil
Jinwoo-H
Jinwoo Hong
parent
1284a00e93
commit
fa85536f3a
@@ -17,6 +17,7 @@ export type SystemSshProcess = {
|
||||
|
||||
export type SystemSshCommandChannel = ClientChannel & {
|
||||
_process?: ChildProcess
|
||||
_closeRequested?: boolean
|
||||
}
|
||||
|
||||
type SystemSshCommandOptions = SshExecOptions & SystemSshBuildArgsOptions
|
||||
@@ -103,12 +104,14 @@ function wrapCommandProcess(proc: ChildProcess): SystemSshCommandChannel {
|
||||
stdin: NodeJS.WritableStream
|
||||
stderr: NodeJS.ReadableStream
|
||||
_process?: ChildProcess
|
||||
_closeRequested?: boolean
|
||||
close: () => void
|
||||
}
|
||||
mutableChannel.stdin = proc.stdin!
|
||||
mutableChannel.stderr = proc.stderr!
|
||||
mutableChannel._process = proc
|
||||
mutableChannel.close = () => {
|
||||
mutableChannel._closeRequested = true
|
||||
try {
|
||||
proc.kill('SIGTERM')
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user