Node v0.8 returns code 1 on SIGINT vs 130 with v0.10

This commit is contained in:
Kyle Robinson Young 2013-10-15 12:55:24 -07:00
parent 0ac53cfadb
commit 5cfb9fe57d

View File

@ -58,7 +58,7 @@ module.exports = function(grunt) {
// Run grunt this process uses, append the task to be run and any cli options
args: self.tasks.concat(self.options.cliArgs || []),
}, function(err, res, code) {
if (self.options.interrupt !== true || code !== 130) {
if (self.options.interrupt !== true || (code !== 130 && code !== 1)) {
// Spawn is done
self.spawned = null;
done();