build,tools: fix addon build deadlock on errors

PR-URL: https://github.com/nodejs/node/pull/61321
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Vladimir Morozov authored and GitHub committed 2026-01-11 01:15:05 +00:00
1 parent 0f15923583
commit 45e37d95eb
1 file changed
+1 -1
+1 -1
View File
@@ -58,8 +58,8 @@ def rebuild_addons(args):
# We buffer the output and print it out once the process is done in order
# to avoid interleaved output from multiple builds running at once.
return_code = process.wait()
stdout, stderr = process.communicate()
return_code = process.returncode
if return_code != 0:
print(f'Failed to build addon in {test_dir}:')
if stdout: