Skip to content

Commit

Permalink
keep termination message
Browse files Browse the repository at this point in the history
  • Loading branch information
GGonryun committed Mar 1, 2024
1 parent e2ef2af commit 7e5a402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/aws/ssm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ const spawnSsmNode = async (options: {
// child.kill() does not kill the entire process group, only the child process. If the child process has descendants, they will not be relinquished properly. The solution to this is to use a detached process and kill the entire process group when the parent process is killed. Consequently, we also need to intercept the SIGINT signal and send a kill signal using an AbortController to ensure all detached processes are killed when the parent process is killed.
process.kill(-child.pid!);
}
print2("SSH session terminated");
resolve(code);
};

Expand Down

0 comments on commit 7e5a402

Please sign in to comment.