Fix exit trap

This commit is contained in:
Shiming Zhang 2022-02-10 10:02:16 +08:00
parent cde03faf18
commit 6dde26d409
1 changed files with 1 additions and 1 deletions

View File

@ -71,6 +71,6 @@ function main() {
wait
}
trap "trap - EXIT && kill 0 && wait && echo exit..." EXIT
trap "trap - SIGTERM && kill 0 && echo exit..." SIGTERM SIGINT
main