Change-Id: I922c141c7ee213140aa143910be8371e6ef96fab
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
static void target_set_type(struct target *t)
{
pid_t ppid = target_get_ppid(t);
static void target_set_type(struct target *t)
{
pid_t ppid = target_get_ppid(t);
+ enum app_type_t app_type = APP_TYPE_UNKNOWN;
if (get_current_pid() == ppid) {
if (get_current_pid() == ppid) {
- t->app_type = APP_TYPE_COMMON;
+ app_type = APP_TYPE_COMMON;
} else if (get_lpad_pid(ppid) == ppid) {
} else if (get_lpad_pid(ppid) == ppid) {
- t->app_type = APP_TYPE_TIZEN;
+ app_type = APP_TYPE_TIZEN;
+
+ t->app_type = app_type;
t = target_malloc();
if (t) {
t = target_malloc();
if (t) {
+ t->app_type = APP_TYPE_UNKNOWN;
t->pid = UNKNOWN_PID;
t->socket = UNKNOWN_FD;
t->event_fd = UNKNOWN_FD;
t->pid = UNKNOWN_PID;
t->socket = UNKNOWN_FD;
t->event_fd = UNKNOWN_FD;