Skip to content

Commit

Permalink
fix(#126): replace SIGKILL with SIGTERM (#147)
Browse files Browse the repository at this point in the history
Co-authored-by: Suzu Tomo <[email protected]>
  • Loading branch information
nnmrts and kamekyame authored Nov 18, 2021
1 parent 91f53b0 commit 4592a41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ export class Daemon implements AsyncIterable<DenonEvent> {
const p = pcopy[id];
if (Deno.build.os === "windows") {
logger.debug(`closing (windows) process with pid ${p.pid}`);
p.kill("SIGKILL");
p.kill("SIGTERM");
p.close();
} else {
logger.debug(`killing (unix) process with pid ${p.pid}`);
p.kill("SIGKILL");
p.kill("SIGTERM");
}
}
}
Expand Down

0 comments on commit 4592a41

Please sign in to comment.