_configure((char *)data_buf);
} else if (log.type == APP_MSG_TARGET_BINS) {
_process_target_bins((char *)data_buf);
- } else if ((log.type == APP_MSG_STOP) ||
- (log.type == APP_MSG_STOP_WITHOUT_KILL)) {
- PRINTMSG("APP_MSG_STOP (%d)", log.type);
+ } else if (log.type == APP_MSG_STOP) {
/* Send acknowlege message to manager */
printLog(&log, APP_MSG_STOP);
/* Do leaks check if LSan is enabled. */
lsan_do_leak_check();
- if (log.type != APP_MSG_STOP_WITHOUT_KILL)
- application_exit();
+
+ application_exit();
+ break;
+ } else if (log.type == APP_MSG_STOP_WITHOUT_KILL) {
+ /* Send acknowlege message to manager */
+ printLog(&log, APP_MSG_STOP);
+ /* Do leaks check if LSan is enabled. */
+ lsan_do_leak_check();
+
+ _uninit_();
break;
} else if(log.type == APP_MSG_GET_UI_HIERARCHY) {
PRINTMSG("APP_MSG_GET_UI_HIERARCHY");
{
int i;
+ lsan_close_liblsan();
+
gTraceInfo.init_complete = -1;
PRINTMSG("dynamic analyzer probe helper so unloading... pid[%d]\n",
getpid());
void __attribute__((destructor)) _fini_probe()
{
PRINTMSG("->lib destructor. pid[%d]\n", getpid());
- lsan_close_liblsan();
_uninit_();
}