mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
fix: sudo keepalive cleanup leaking exit code 143 (#3040)
This commit is contained in:
@@ -119,8 +119,8 @@ function sudo_init_keepalive(){
|
|||||||
# Stop the sudo keepalive background process
|
# Stop the sudo keepalive background process
|
||||||
function sudo_stop_keepalive(){
|
function sudo_stop_keepalive(){
|
||||||
if [[ -n "$SUDO_KEEPALIVE_PID" ]] && kill -0 "$SUDO_KEEPALIVE_PID" 2>/dev/null; then
|
if [[ -n "$SUDO_KEEPALIVE_PID" ]] && kill -0 "$SUDO_KEEPALIVE_PID" 2>/dev/null; then
|
||||||
kill "$SUDO_KEEPALIVE_PID" 2>/dev/null
|
kill "$SUDO_KEEPALIVE_PID" 2>/dev/null || true
|
||||||
wait "$SUDO_KEEPALIVE_PID" 2>/dev/null
|
wait "$SUDO_KEEPALIVE_PID" 2>/dev/null || true
|
||||||
SUDO_KEEPALIVE_PID=""
|
SUDO_KEEPALIVE_PID=""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user