diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-04-09 21:12:40 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-04-09 21:12:40 +0300 |
commit | 50388b3935bb9e7c5313bc6cf1d6a0a6849efcd6 (patch) | |
tree | a350c1a659728db26e1951c9e500da6929e5ec98 | |
parent | 5267a233cb9e2a767a648fdd1af0073a9cb5b1a0 (diff) |
pull upstream changes from gitstatus
-rw-r--r-- | gitstatus/gitstatus.plugin.zsh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh index 95e920ee..6b28997c 100644 --- a/gitstatus/gitstatus.plugin.zsh +++ b/gitstatus/gitstatus.plugin.zsh @@ -223,12 +223,15 @@ function gitstatus_start() { esac } + local -i sigwinch_pid=-1 + (( ! ${GITSTATUS_SEND_SIGWINCH:-0} )) || sigwinch_pid=$$ + # We use `zsh -c` instead of plain {} or () to work around bugs in zplug. It hangs on startup. zsh -xc " - ${(q)daemon} \ - --lock-fd=3 \ - --sigwinch-pid=$$ \ - --num-threads=$threads \ + ${(q)daemon} \ + --lock-fd=3 \ + --sigwinch-pid=$sigwinch_pid \ + --num-threads=$threads \ --dirty-max-index-size=$max_dirty echo -nE $'bye\x1f0\x1e' " <&$req_fd >&$resp_fd 2>$log_file 3<$lock_file &! |