Fixe orphan process commection by init

This commit is contained in:
Xarus
2025-02-20 16:55:57 +01:00
parent 8fa10f43a0
commit 55b88e1b25
2 changed files with 7 additions and 3 deletions

View File

@@ -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.

View File

@@ -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