mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user