File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2981,7 +2981,6 @@ print -- "\nAvailable ice-modifiers:\n\n${ice_order[*]}"
29812981 PUAssocArray[$! ]=$PUFILE
29822982
29832983 .zinit-wait-for-update-jobs plugins
2984-
29852984 }
29862985 }
29872986 # Shouldn't happen
@@ -3200,7 +3199,8 @@ print -- "\nAvailable ice-modifiers:\n\n${ice_order[*]}"
32003199
32013200 integer pager_pid=$!
32023201 { sleep 20 && kill -9 $pager_pid 2> /dev/null 1>&2 ; } & !
3203- { wait $pager_pid ; } > /dev/null 2>&1
3202+ integer kill_pager_pid=$!
3203+ { wait $pager_pid ; kill -9 $kill_pager_pid ; } > /dev/null 2>&1
32043204
32053205 local -a log
32063206 { log=( ${(@ f)" $( < $local_dir /.zinit_lastupd) " } ); } 2> /dev/null
@@ -3562,6 +3562,11 @@ print -- "\nAvailable ice-modifiers:\n\n${ice_order[*]}"
35623562 command rm -f ${(v)PUAssocArray}
35633563 counter=0
35643564 PUAssocArray=()
3565+
3566+ # Clear zombie jobs.
3567+ if (( main_counter == 0 )) {
3568+ wait
3569+ }
35653570 } elif (( counter == 1 && ! OPTS[opt_- q,-- quiet] )) {
35663571 +zi-log " {obj}Spawning the next{num}" \
35673572 " ${OPTS[value]} {obj} concurrent update jobs" \
You can’t perform that action at this time.
0 commit comments