From a2772d189329c58011ebf98ff66d576b7ce59d32 Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Tue, 14 Jan 2020 20:23:35 +0900 Subject: [PATCH] e_appinfo: make find_with_pid create e_appinfo if inexist Change-Id: I578e233ba7b7083d5c6f01bd63cfde91abba2651 --- src/bin/e_appinfo.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/e_appinfo.c b/src/bin/e_appinfo.c index 8e2886f099..e7a3df4b00 100644 --- a/src/bin/e_appinfo.c +++ b/src/bin/e_appinfo.c @@ -167,7 +167,11 @@ e_appinfo_find_with_pid(pid_t pid) return eai; } - return NULL; + eai = e_appinfo_new(); + e_appinfo_pid_set(eai, pid); + ELOGF("POL_APPINFO", "appinfo_find_with_pid: appinfo(%p) create with pid(%d)", NULL, eai, pid); + + return eai; } E_API E_Appinfo * -- 2.34.1