Skip to content

Commit d90a6f9

Browse files
ShogunPandatargos
authored andcommitted
benchmark: fix fork detection
PR-URL: #43601 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent dabccef commit d90a6f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function formatResult(data) {
287287
}
288288

289289
function sendResult(data) {
290-
if (process.send) {
290+
if (process.send && Object.hasOwn(process.env, 'NODE_RUN_BENCHMARK_FN')) {
291291
// If forked, report by process send
292292
process.send(data, () => {
293293
// If, for any reason, the process is unable to self close within

0 commit comments

Comments
 (0)