From ec8c3f0c014ac8dd29fe5f17c7007eae6bc442c0 Mon Sep 17 00:00:00 2001 From: Jonny Burger Date: Mon, 11 Sep 2023 16:37:07 +0200 Subject: [PATCH] don't log nproc failure Former-commit-id: 263721d0cb2fc250dad26023aeb19b4a4fda878a --- packages/renderer/src/get-cpu-count.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/renderer/src/get-cpu-count.ts b/packages/renderer/src/get-cpu-count.ts index 673a687ddaf..93add1d7a8b 100644 --- a/packages/renderer/src/get-cpu-count.ts +++ b/packages/renderer/src/get-cpu-count.ts @@ -8,7 +8,7 @@ import {cpus} from 'node:os'; // We also get it from nproc and use the minimum of the two. const getConcurrencyFromNProc = (): number | null => { try { - return parseInt(execSync('nproc').toString().trim(), 10); + return parseInt(execSync('nproc', {stdio: 'pipe'}).toString().trim(), 10); } catch (error) { return null; }