soarlab / maline

Android Malware Detection Framework
GNU Affero General Public License v3.0
81 stars 31 forks source link

Gracefully exit from the tool #6

Closed mdimjasevic closed 10 years ago

mdimjasevic commented 10 years ago

When the tool finishes (i.e. maline.sh), either regularly or with a termination signal, it should exit gracefully. In other words, it should clean up after itself, e.g. kill all processes it has started and remove temporary files it has created.

An example to look at is bin/parse-log-lock.sh.

mdimjasevic commented 10 years ago

The same should be done for avd-create.sh, and probably for helper scripts.

mdimjasevic commented 10 years ago

When killed while extract-trace.sh is executing, maline doesn't exit, but hangs instead.