1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-10 14:19:17 +00:00

Improve spinner subprocess and trap cleanup handling

This commit is contained in:
Tw93
2025-12-28 19:35:29 +08:00
parent 61069aff86
commit 52d50a0a80
5 changed files with 12 additions and 9 deletions

View File

@@ -240,7 +240,8 @@ scan_applications() {
local spinner_pid=""
(
trap 'exit 0' TERM INT EXIT
cleanup_spinner() { exit 0; }
trap cleanup_spinner TERM INT EXIT
local spinner_chars="|/-\\"
local i=0
while true; do