summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Moody <dmoody256@gmail.com>2022-05-11 21:27:35 (GMT)
committerDaniel Moody <dmoody256@gmail.com>2022-05-11 21:27:35 (GMT)
commit791062ff1e9dbc95ecaba40d78617cfe9d6ad0c5 (patch)
tree5260ab68c86a051b6af2fd2447a4079f01bc70bf
parentedfa3ec16cf67fbe12480cf7f875e426ef63677b (diff)
parent31e53ca45e062824ba1537c66c37e30a3ed6db56 (diff)
downloadSCons-791062ff1e9dbc95ecaba40d78617cfe9d6ad0c5.zip
SCons-791062ff1e9dbc95ecaba40d78617cfe9d6ad0c5.tar.gz
SCons-791062ff1e9dbc95ecaba40d78617cfe9d6ad0c5.tar.bz2
Merge remote-tracking branch 'origin/master' into shell_subst_env_vars
-rwxr-xr-xCHANGES.txt2
-rwxr-xr-xRELEASE.txt3
-rw-r--r--SCons/Tool/ninja/ninja_run_daemon.py2
3 files changed, 5 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 6ec23d0..1e133e1 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -84,6 +84,8 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
a function which will be called to obtain an environment which will be used in the shell
command of some Action.
- Updated ninja scons daemon scripts to output errors to stderr as well as the daemon log.
+ - Fix typo in ninja scons daemon startup which causes ConnectionRefusedError to not retry
+ to connect to the server during start up.
From Mats Wichmann:
- Tweak the way default site_scons paths on Windows are expressed to
diff --git a/RELEASE.txt b/RELEASE.txt
index 9678e30..9ae5c57 100755
--- a/RELEASE.txt
+++ b/RELEASE.txt
@@ -92,7 +92,8 @@ FIXES
- Restore the ability of the content-timestamp decider to see that a
a source which is a symlink has changed if the file-system target of
that link has been modified (issue #3880)
-
+- Fix typo in ninja scons daemon startup which causes ConnectionRefusedError to not retry
+ to connect to the server during start up.
IMPROVEMENTS
------------
diff --git a/SCons/Tool/ninja/ninja_run_daemon.py b/SCons/Tool/ninja/ninja_run_daemon.py
index f525857..297bcf4 100644
--- a/SCons/Tool/ninja/ninja_run_daemon.py
+++ b/SCons/Tool/ninja/ninja_run_daemon.py
@@ -125,7 +125,7 @@ if not os.path.exists(ninja_builddir / "scons_daemon_dirty"):
except ConnectionRefusedError:
logging.debug(f"Server not ready, server PID: {p.pid}")
time.sleep(1)
- if p.poll is not None:
+ if p.poll() is not None:
log_error(f"Server process died, aborting: {p.returncode}")
sys.exit(p.returncode)
except ConnectionResetError: