Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df96b5 commit f9c30abCopy full SHA for f9c30ab
benchmark/common.js
@@ -289,7 +289,13 @@ function formatResult(data) {
289
function sendResult(data) {
290
if (process.send) {
291
// If forked, report by process send
292
- process.send(data);
+ process.send(data, () => {
293
+ // If, for any reason, the process is unable to self close within
294
+ // a second after completing, forcefully close it.
295
+ setTimeout(() => {
296
+ process.exit(0);
297
+ }, 5000).unref();
298
+ });
299
} else {
300
// Otherwise report by stdout
301
process.stdout.write(formatResult(data));
0 commit comments