Skip to content

sim: fix race condition in tmux script - #22365

Merged
adeebshihadeh merged 2 commits into
commaai:masterfrom
a1eaiactaest:master
Sep 28, 2021
Merged

adeebshihadeh merged 2 commits into
commaai:masterfrom
a1eaiactaest:master

Conversation

@a1eaiactaest

Copy link
Copy Markdown
Contributor

Potential bug fix at tools/sim/tmux_script.sh.
It can look as follows:

  • user launches tmux script
  • simultaneously other tmux session is created
  • tmux a attaches to last used session
  • tmux a -t htop would always attach to session named htop

Although bash scripts are fast and the bug I described is really not likely to happen, it's better to be cautious especially when the fix doesn't take away anything.

@adeebshihadeh adeebshihadeh changed the title carla simulator tmux script enhancement sim: fix race condition in tmux script Sep 28, 2021
@adeebshihadeh
adeebshihadeh merged commit 8412f60 into commaai:master Sep 28, 2021
66thparallel pushed a commit to 66thparallel/janes_openpilot_fork that referenced this pull request May 1, 2026
* carla simulator tmux script enhancement

* real name

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8412f60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants