Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race condition with tmux synchronised panes #103

Open
ScrumpyJack opened this issue Mar 17, 2021 · 1 comment
Open

Race condition with tmux synchronised panes #103

ScrumpyJack opened this issue Mar 17, 2021 · 1 comment

Comments

@ScrumpyJack
Copy link

With several synchronised panes open in tmux, while typing a command, there's a race to write to the db.

One pane will be successful, then each other pane might error with "Error: near line #some_line_number: database is locked" pane number -1 times. So the forth pane will sometimes error up to three times, (in not particular order).

As the command executed in each pane, by nature, is the same (panes are sync'ed), it would be awesome if there was a way to detect that and have only one pane write to the db.

tmux doesn't set an explicit enough environment to be able to detect this, so I'm at a loss as to how this could be addressed.

@ScrumpyJack
Copy link
Author

Just found #27

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

No branches or pull requests

1 participant