Skip to content

Commit

Permalink
Added windows taskkill
Browse files Browse the repository at this point in the history
  • Loading branch information
colmose committed Apr 27, 2017
1 parent 7c55fdb commit 1fce0ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ function makeTask(grunt) {
procs.forEach(function(proc) {
proc.once('close', closeHandler);
});
_.invoke(procs, 'kill');
if(process.platform === 'win32') {
child_process.execSync(`taskkill /f /t /pid ${pid}`);
} else {
_.invoke(procs, 'kill');
}
} else {
grunt.log.ok(name + ' already stopped');
}
Expand Down

0 comments on commit 1fce0ca

Please sign in to comment.