Skip to content

Commit ec33645

Browse files
author
Dimitar Tachev
authored
Merge pull request #268 from NativeScript/tachev/fix-cli-termination
fix: replace the custom CLI termination logic with a simple CTRL+C signal
2 parents ee8a3a8 + 2b7e6f8 commit ec33645

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/common/terminateProcess.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/common/utilities.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ export function killProcess(childProcess: ChildProcess, logger?: ILogger): void
1313
break;
1414

1515
default:
16-
const cmd = path.join(__dirname, 'terminateProcess.sh');
17-
18-
execSync(`${cmd} ${childProcess.pid.toString()}`);
16+
// ctrl + c
17+
execSync(`kill -2 ${childProcess.pid.toString()}`);
1918
break;
2019
}
2120
} catch (error) {

0 commit comments

Comments
 (0)