mirror of
https://github.com/233boy/sing-box.git
synced 2026-05-03 06:14:41 +08:00
fix: wait for background tasks before exit to prevent output overlap
This commit is contained in:
@@ -448,6 +448,8 @@ main() {
|
|||||||
load core.sh
|
load core.sh
|
||||||
# create a reality config
|
# create a reality config
|
||||||
add reality
|
add reality
|
||||||
|
# wait for background tasks (e.g., OpenRC service start)
|
||||||
|
wait
|
||||||
# remove tmp dir and exit.
|
# remove tmp dir and exit.
|
||||||
exit_and_del_tmpdir ok
|
exit_and_del_tmpdir ok
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user