sudo: remove the nice support
This commit is contained in:
@@ -14,7 +14,6 @@ var assert = require('assert'),
|
||||
util = require('util');
|
||||
|
||||
const SUDO = '/usr/bin/sudo';
|
||||
const NICE = '/usr/bin/nice';
|
||||
|
||||
function exec(tag, cmd, callback) {
|
||||
assert.strictEqual(typeof tag, 'string');
|
||||
@@ -42,11 +41,6 @@ function spawn(tag, file, args, options, callback) {
|
||||
|
||||
if (options.ipc) options.stdio = ['pipe', 'pipe', 'pipe', 'ipc'];
|
||||
|
||||
if (options.nice) {
|
||||
args = ['-n', options.nice, file].concat(args);
|
||||
file = NICE;
|
||||
}
|
||||
|
||||
debug(tag + ' spawn: %s %s', file, args.join(' '));
|
||||
const cp = child_process.spawn(file, args, options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user