summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-02-02 19:25:28 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2017-02-02 21:41:13 -0800
commit41e7d9f27848aa8601a2586cf3e7b86fe15dd00c (patch)
tree02422083f42e3b8a7a6403fa07cfb76ffce2aa86
parent828365841b7dce3ab4e6cb1956b79bdc14c2f3a1 (diff)
downloadlaunchpad-41e7d9f27848aa8601a2586cf3e7b86fe15dd00c.tar.gz
launchpad-41e7d9f27848aa8601a2586cf3e7b86fe15dd00c.tar.bz2
launchpad-41e7d9f27848aa8601a2586cf3e7b86fe15dd00c.zip
When the application is launched by the debugger, the application is a child process of the debugger. The process group of the appliation is not equal to the process id of the debugger. If the process id is not equal to the process pid of the environment variable, the aul socket API will create the socket link to recevie the request. Requires: - https://review.tizen.org/gerrit/112668 Change-Id: I2f63a9cf74f13157b6cd39c8ad5d37489a37165a Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com> (cherry picked from commit e85b65847a5904ebe3bebd1290b030066b02b5e1)
-rw-r--r--src/launchpad_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/launchpad_common.c b/src/launchpad_common.c
index f1b4532..e71c511 100644
--- a/src/launchpad_common.c
+++ b/src/launchpad_common.c
@@ -630,6 +630,7 @@ error:
void _set_env(appinfo_t *menu_info, bundle *kb)
{
const char *str;
+ char buf[MAX_LOCAL_BUFSZ];
str = bundle_get_val(kb, AUL_K_STARTTIME);
if (str != NULL)
@@ -657,6 +658,9 @@ void _set_env(appinfo_t *menu_info, bundle *kb)
str = bundle_get_val(kb, AUL_K_API_VERSION);
if (str != NULL)
setenv("TIZEN_API_VERSION", str, 1);
+
+ snprintf(buf, sizeof(buf), "%d", getpid());
+ setenv("AUL_PID", buf, 1);
}
char **_create_argc_argv(bundle *kb, int *margc)