We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e82a91c commit 3b377edCopy full SHA for 3b377ed
scripts/docker/ceseal/gramine/handover.ts
@@ -88,10 +88,9 @@ async function killPreviousCeseal(version: number) {
88
]);
89
90
if (code === 0) {
91
- const pid = new TextDecoder().decode(rawOutput);
92
- log(`the previous version ${version} ceseal pid: ${pid}`);
93
- const p = Deno.run({ cmd: ["bash", "-c", `kill -9 ${pid}`] });
94
- await p.status();
+ const pid = parseInt(new TextDecoder().decode(rawOutput));
+ log(`kill the previous version ${version} ceseal pid: ${pid}`);
+ Deno.kill(pid, "SIGKILL");
95
} else {
96
const errorString = new TextDecoder().decode(rawError);
97
log(errorString);
0 commit comments