Skip to content

Commit

Permalink
v1.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
pghalliday committed Mar 3, 2017
1 parent 4a907d8 commit e881ac7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions lib/alarmist/monitor-exec.js
Expand Up @@ -5,13 +5,6 @@ Object.defineProperty(exports, "__esModule", {
});
exports.exec = undefined;

// We start child processes detached and kill them by
// process group because otherwise grandchildren
// will not be killed - of course this means that
// if something goes wrong and cleanup is not called
// then that process group will not be killed. But
// this is the best case as grandchildren will be
// orphaned if not detached anyway (I think)
var exec = exports.exec = function () {
var _ref2 = _asyncToGenerator(regeneratorRuntime.mark(function _callee3(_ref) {
var _this = this;
Expand Down Expand Up @@ -112,4 +105,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }

// tree-kill gives us a cross-platform
// way to kill children and grandchildren, etc
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "alarmist",
"version": "1.0.10",
"version": "1.0.11",
"description": "Monitor parallel jobs",
"main": "lib/index.js",
"bin": {
Expand Down

0 comments on commit e881ac7

Please sign in to comment.