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

@@ -856,7 +856,7 @@ function runBackupUpload(uploadConfig, progressCallback, callback) {
let result = ''; // the script communicates error result as a string
shell.sudo(`backup-${backupId}`, [ BACKUP_UPLOAD_CMD, backupId, format, dataLayout.toString() ], { preserveEnv: true, ipc: true, nice: 15 }, function (error) {
shell.sudo(`backup-${backupId}`, [ BACKUP_UPLOAD_CMD, backupId, format, dataLayout.toString() ], { preserveEnv: true, ipc: true }, function (error) {
if (error && (error.code === null /* signal */ || (error.code !== 0 && error.code !== 50))) { // backuptask crashed
return callback(new BoxError(BoxError.INTERNAL_ERROR, 'Backuptask crashed'));
} else if (error && error.code === 50) { // exited with error