mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -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
|
||||
function sudo_stop_keepalive(){
|
||||
if [[ -n "$SUDO_KEEPALIVE_PID" ]] && kill -0 "$SUDO_KEEPALIVE_PID" 2>/dev/null; then
|
||||
kill "$SUDO_KEEPALIVE_PID" 2>/dev/null
|
||||
wait "$SUDO_KEEPALIVE_PID" 2>/dev/null
|
||||
kill "$SUDO_KEEPALIVE_PID" 2>/dev/null || true
|
||||
wait "$SUDO_KEEPALIVE_PID" 2>/dev/null || true
|
||||
SUDO_KEEPALIVE_PID=""
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user