diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2017-02-02 19:25:28 +0900 |
---|---|---|
committer | HwanKyu Jhun <h.jhun@samsung.com> | 2017-02-02 21:41:13 -0800 |
commit | 41e7d9f27848aa8601a2586cf3e7b86fe15dd00c (patch) | |
tree | 02422083f42e3b8a7a6403fa07cfb76ffce2aa86 | |
parent | 828365841b7dce3ab4e6cb1956b79bdc14c2f3a1 (diff) | |
download | launchpad-41e7d9f27848aa8601a2586cf3e7b86fe15dd00c.tar.gz launchpad-41e7d9f27848aa8601a2586cf3e7b86fe15dd00c.tar.bz2 launchpad-41e7d9f27848aa8601a2586cf3e7b86fe15dd00c.zip |
Add the pid to the environmentsubmit/tizen_3.0/20170203.072231accepted/tizen/3.0/wearable/20170206.034131accepted/tizen/3.0/tv/20170206.034023accepted/tizen/3.0/mobile/20170206.033824accepted/tizen/3.0/ivi/20170206.034244accepted/tizen/3.0/common/20170206.110317tizen_3.0_tv
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.c | 4 |
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) |