diff options
author | Paolo Insogna <paolo@cowtech.it> | 2022-06-28 16:28:59 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2022-07-31 10:45:02 +0300 |
commit | f4c41134349694f5cc16023941deb3551d93a49e (patch) | |
tree | 20b9873fc4ed55f66d883aca6583460eb5ac0dc6 /benchmark | |
parent | e8754f355768323a3d9abe195847bf2b6f40e537 (diff) |
benchmark: fix fork detection
PR-URL: https://github.com/nodejs/node/pull/43601
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/common.js b/benchmark/common.js index 080cfc71785..e582dc8bdc2 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -287,7 +287,7 @@ function formatResult(data) { } function sendResult(data) { - if (process.send) { + if (process.send && Object.hasOwn(process.env, 'NODE_RUN_BENCHMARK_FN')) { // If forked, report by process send process.send(data, () => { // If, for any reason, the process is unable to self close within |