diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-12-05 11:28:30 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-12-05 11:28:30 +0300 |
commit | e181bc0653ae15ba5730a65b253d499bf22a31bf (patch) | |
tree | 1161f1951b6580941f0925904556a40bb6e701e2 | |
parent | e2447322e0be4eddb84196f05952f91fa3c6f37e (diff) |
Squashed 'gitstatus/' changes from e26996460..f1cf61b24
f1cf61b24 work around a bug in IP-guard
git-subtree-dir: gitstatus
git-subtree-split: f1cf61b241a2a34514a8ff5f71dfb79a99d85c7c
-rw-r--r-- | gitstatus.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitstatus.plugin.zsh b/gitstatus.plugin.zsh index c37af1d7..cef78974 100644 --- a/gitstatus.plugin.zsh +++ b/gitstatus.plugin.zsh @@ -458,7 +458,7 @@ function _gitstatus_daemon"${1:-}"() { (( lock_fd == -1 )) && return { - if zsystem flock -- $file_prefix.lock && [[ -e $file_prefix.lock ]]; then + if zsystem flock -- $file_prefix.lock && command sleep 5 && [[ -e $file_prefix.lock ]]; then zf_rm -f -- $file_prefix.lock $file_prefix.fifo kill -- -$pgid fi |