aboutsummaryrefslogtreecommitdiff
path: root/gitstatus
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-06-19 00:09:10 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-06-19 00:09:10 +0300
commitd40734d68785f3caf090321108ff68ff9c70115e (patch)
treec9f02aa088c35234878a2725b7190dbf8790c9cd /gitstatus
parent95b25e94e190522ddc7128c1abfe1f6c2568fece (diff)
pull upstream changes from gitstatus
Diffstat (limited to 'gitstatus')
-rwxr-xr-xgitstatus/bin/gitstatusd-cygwin_nt-10.0-x86_64bin0 -> 13385621 bytes
l---------gitstatus/bin/gitstatusd-cygwin_nt-6.1-x86_641
-rw-r--r--gitstatus/gitstatus.plugin.zsh22
3 files changed, 12 insertions, 11 deletions
diff --git a/gitstatus/bin/gitstatusd-cygwin_nt-10.0-x86_64 b/gitstatus/bin/gitstatusd-cygwin_nt-10.0-x86_64
new file mode 100755
index 00000000..cc30c089
--- /dev/null
+++ b/gitstatus/bin/gitstatusd-cygwin_nt-10.0-x86_64
Binary files differ
diff --git a/gitstatus/bin/gitstatusd-cygwin_nt-6.1-x86_64 b/gitstatus/bin/gitstatusd-cygwin_nt-6.1-x86_64
new file mode 120000
index 00000000..c0d9fb61
--- /dev/null
+++ b/gitstatus/bin/gitstatusd-cygwin_nt-6.1-x86_64
@@ -0,0 +1 @@
+gitstatusd-cygwin_nt-10.0-x86_64 \ No newline at end of file
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh
index edf3a105..e5bd86c4 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -287,18 +287,9 @@ function gitstatus_start() {
req_fifo=$(mktemp -u "${TMPDIR:-/tmp}"/gitstatus.$$.pipe.req.XXXXXXXXXX)
mkfifo $req_fifo
- sysopen -rw -o cloexec,sync -u req_fd $req_fifo
- command rm -f $req_fifo
resp_fifo=$(mktemp -u "${TMPDIR:-/tmp}"/gitstatus.$$.pipe.resp.XXXXXXXXXX)
mkfifo $resp_fifo
- sysopen -rw -o cloexec -u resp_fd $resp_fifo
- command rm -f $resp_fifo
-
- function _gitstatus_process_response_${name}() {
- _gitstatus_process_response ${${(%)${:-%N}}#_gitstatus_process_response_} 0 ''
- }
- zle -F $resp_fd _gitstatus_process_response_${name}
[[ ${GITSTATUS_ENABLE_LOGGING:-0} == 1 ]] &&
log_file=$(mktemp "${TMPDIR:-/tmp}"/gitstatus.$$.daemon-log.XXXXXXXXXX) ||
@@ -333,10 +324,19 @@ function gitstatus_start() {
${(q)daemon}-static $daemon_args
fi
echo -nE $'bye\x1f0\x1e'
- " <&$req_fd >&$resp_fd 2>$log_file 3<$lock_file &!
+ " <$req_fifo >$resp_fifo 2>$log_file 3<$lock_file &!
daemon_pid=$!
- command rm -f $lock_file
+
+ sysopen -w -o cloexec,sync -u req_fd $req_fifo
+ sysopen -r -o cloexec -u resp_fd $resp_fifo
+
+ command rm -f $req_fifo $resp_fifo $lock_file
+
+ function _gitstatus_process_response_${name}() {
+ _gitstatus_process_response ${${(%)${:-%N}}#_gitstatus_process_response_} 0 ''
+ }
+ zle -F $resp_fd _gitstatus_process_response_${name}
local reply
echo -nE $'hello\x1f\x1e' >&$req_fd