Skip to content

Commit 255ba0d

Browse files
committed
fixes for lint
1 parent 1eede2d commit 255ba0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/codewhispererChat/tools/executeBash.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ exec bash -c "
347347
if (this.childProcess && this.childProcess.pid) {
348348
try {
349349
// On Unix systems, negative PID kills the process group
350-
this.logger.debug(`Sending SIGTERM to process group -${this.childProcess.pid}`)
351350
const pid = -this.childProcess.pid
351+
this.logger.debug(`Sending SIGTERM to process group ${pid}`)
352352
process.kill(pid, 'SIGTERM')
353353
} catch (err) {
354354
this.logger.debug(`Failed to kill process group: ${err}`)
@@ -367,8 +367,8 @@ exec bash -c "
367367
// Try to kill the process group with SIGKILL
368368
if (this.childProcess.pid) {
369369
try {
370-
this.logger.debug(`Sending SIGKILL to process group -${this.childProcess.pid}`)
371370
const pid = -this.childProcess.pid
371+
this.logger.debug(`Sending SIGKILL to process group ${pid}`)
372372
process.kill(pid, 'SIGKILL')
373373
} catch (err) {
374374
this.logger.debug(`Failed to kill process group with SIGKILL: ${err}`)

0 commit comments

Comments
 (0)