aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-12-05 11:28:30 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-12-05 11:28:30 +0300
commit3380f7503e7dc252163d5b30475335ed67f58a98 (patch)
tree567fa7e81077f464ceec7886386de6fb68925005
parenta9f208c8fc509b9c591169dd9758c48ad4325f76 (diff)
parente181bc0653ae15ba5730a65b253d499bf22a31bf (diff)
Merge commit 'e181bc0653ae15ba5730a65b253d499bf22a31bf'
-rw-r--r--gitstatus/gitstatus.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh
index c37af1d7..cef78974 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/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