1
0
mirror of https://github.com/google/adb-sync.git synced 2026-01-03 01:48:02 +00:00

adb-channel: In fact, safely exit also on SIGINT, SIGTERM and SIGALRM,

as all these usually intend a "clean" exit.
This commit is contained in:
Rudolf Polzer
2015-05-03 15:52:58 +02:00
parent 38496c2c25
commit 9b9a7041ff

View File

@@ -14,7 +14,7 @@ atexit() {
rm -rf "${t}"
}
trap atexit EXIT
trap 'exit 0' HUP
trap 'exit 0' HUP INT ALRM TERM
[ -z "${activity}" ] || adb shell am start -W ${activity}
[ -z "${delay}" ] || sleep "${delay}"