File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/core/src/codewhispererChat/tools Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -347,7 +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- const pid = - this . childProcess . pid
350+ const childProcessPid = this . childProcess . pid
351+ const pid = - childProcessPid
351352 this . logger . debug ( `Sending SIGTERM to process group ${ pid } ` )
352353 process . kill ( pid , 'SIGTERM' )
353354 } catch ( err ) {
@@ -367,7 +368,8 @@ exec bash -c "
367368 // Try to kill the process group with SIGKILL
368369 if ( this . childProcess . pid ) {
369370 try {
370- const pid = - this . childProcess . pid
371+ const childProcessPid = this . childProcess . pid
372+ const pid = - childProcessPid
371373 this . logger . debug ( `Sending SIGKILL to process group ${ pid } ` )
372374 process . kill ( pid , 'SIGKILL' )
373375 } catch ( err ) {
You can’t perform that action at this time.
0 commit comments