Repository navigation
Commit 059e81a
andy
Fix RCommand freeze/error on local ("system") connections (regression from bash-support change)
Reported live within minutes of shipping v8.0.1: ECCE froze/errored
("ERROR: Unable to create local command shell.") on Save in the
calculation editor. Root cause: the tcsh/bash detection probe added for
remote connections in the previous commit runs unconditionally in
RCommand's constructor -- but that same login sequence also handles
RCommand("system")/"-f", the *local*-machine connection
ESInputController.C/JobStore.C/Launch.C use to replace plain system()
calls (a locally spawned shell talking over a pty, same handshake
mechanism as a real remote connection). The new probe was never meant to
run there at all -- Point 1 (the local shell) was explicitly scoped out
as separate, not-yet-started work when Point 2 (remote) was designed.
Fixed by skipping the whole detection block (probe, forced-bash checks)
for local connections, forcing useBash=false unconditionally -- exactly
the pre-existing behavior before bash support existed. Verified via a
standalone repro linked against the real build (RCommand("system") +
isOpen(), the exact call ESInputController.C's save path makes): hung/
failed before this fix, returns true immediately after.1 parent 9dab8e2 commit 059e81a
1 file changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1271 | 1271 | | |
1272 | 1272 | | |
1273 | 1273 | | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1274 | 1289 | | |
1275 | | - | |
1276 | | - | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1277 | 1294 | | |
1278 | 1295 | | |
1279 | 1296 | | |
1280 | 1297 | | |
1281 | | - | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
1282 | 1301 | | |
1283 | 1302 | | |
1284 | 1303 | | |
| |||
0 commit comments