The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
24 lines
604 B
JavaScript
24 lines
604 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
var path = require('path');
|
|
|
|
var spawn = require('child_process').spawn;
|
|
var childPath = path.join(__dirname, '..', 'fixtures', 'parent-process-nonpersistent.js');
|
|
var persistentPid = -1;
|
|
|
|
var child = spawn(process.execPath, [ childPath ]);
|
|
|
|
child.stdout.on('data', function (data) {
|
|
persistentPid = parseInt(data, 10);
|
|
});
|
|
|
|
process.on('exit', function () {
|
|
assert(persistentPid !== -1);
|
|
assert.throws(function () {
|
|
process.kill(child.pid);
|
|
});
|
|
assert.doesNotThrow(function () {
|
|
process.kill(persistentPid);
|
|
});
|
|
});
|
|
|