tmux-continuum/scripts
v9v 721890d22f Fix race condition in autosave
Fixes the case where multiple tmux sessions call auto-save at the same time, which occasionally results in multiple instances of save_all() running in parallel and causing issues like #3 and tmux-plugins/tmux-resurrect#294.

The sequence in main() is:
1. Check enough_time_since_last_run_passed
2. Save
3. Update last_save_timestamp.

The race here is:
* process A finishes step 1 and is busy with step 2. The timestamp is not updated yet.
* process B comes to step 1, sees the old timestamp and proceeds to step 2, too.
2019-07-04 20:21:02 +02:00
..
handle_tmux_automatic_start Make user systemd dir if it doesn't exist 2017-10-14 11:25:00 -04:00
check_tmux_version.sh First working version 2015-02-11 15:43:37 +01:00
continuum_restore.sh Rename the plugin to 'tmux-continuum' 2015-02-20 13:38:09 +01:00
continuum_save.sh Fix race condition in autosave 2019-07-04 20:21:02 +02:00
continuum_status.sh Continuum status 2015-11-29 18:36:13 +01:00
handle_tmux_automatic_start.sh Removing debug opts. 2016-01-09 16:28:47 +01:00
helpers.sh Bugfix: do not count tmux source-file as tmux process 2015-03-14 15:55:00 +01:00
shared.sh More bugfixing 2015-02-12 15:52:10 +01:00
variables.sh Re-named tmux variable to maintain consistency. 2016-01-09 16:28:48 +01:00