forked from mirrors/powerlevel10k
Fixe orphan process commection by init
This commit is contained in:
@@ -465,7 +465,9 @@ function _gitstatus_daemon"${1:-}"() {
|
||||
zf_rm -f -- $file_prefix.lock $file_prefix.fifo
|
||||
kill -- -$pgid
|
||||
}
|
||||
} &!
|
||||
} &
|
||||
|
||||
pid_gitstatus=$!
|
||||
|
||||
(( lock_fd == -1 )) && return
|
||||
|
||||
@@ -474,7 +476,9 @@ function _gitstatus_daemon"${1:-}"() {
|
||||
zf_rm -f -- $file_prefix.lock $file_prefix.fifo
|
||||
kill -- -$pgid
|
||||
fi
|
||||
} &!
|
||||
} &
|
||||
|
||||
wait $pid_gitstatus
|
||||
}
|
||||
|
||||
# Starts gitstatusd in the background. Does nothing and succeeds if gitstatusd is already running.
|
||||
|
||||
@@ -207,7 +207,7 @@ function _p9k_worker_start() {
|
||||
while syswrite $'\x05'; do zselect -t 1000; done
|
||||
zf_rm -f $_p9k__worker_file_prefix.fifo
|
||||
kill -- -$_p9k_worker_pgid
|
||||
} &
|
||||
}
|
||||
exec =true) || return
|
||||
_p9k__worker_pid=$sysparams[procsubstpid]
|
||||
zle -F $_p9k__worker_resp_fd _p9k_worker_receive
|
||||
|
||||
Reference in New Issue
Block a user