sudo: remove the nice support

This commit is contained in:
Girish Ramakrishnan
2020-08-06 16:44:35 -07:00
parent ac63d00c93
commit 2112c7d096
3 changed files with 1 additions and 8 deletions

View File

@@ -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);