projects
/
platform
/
core
/
appfw
/
launchpad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5981e0f
)
[UI Thread] Set a new environment variable
65/273865/2
author
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 14 Apr 2022 23:20:36 +0000
(08:20 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 14 Apr 2022 23:44:01 +0000
(08:44 +0900)
To prevent race condition about calling setenv(), the launchpad sets
"TIZEN_GLIB_CONTEXT" environment variable.
Change-Id: I161ef17f785556b39e74d1bf4ee277d2c36e7874
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/common/src/launchpad_common.c
patch
|
blob
|
history
diff --git
a/src/lib/common/src/launchpad_common.c
b/src/lib/common/src/launchpad_common.c
index
17ab641
..
4286a74
100644
(file)
--- a/
src/lib/common/src/launchpad_common.c
+++ b/
src/lib/common/src/launchpad_common.c
@@
-787,6
+787,7
@@
void _set_env(appinfo_t *menu_info, bundle *kb)
snprintf(buf, sizeof(buf), "%d", getpid());
setenv("AUL_PID", buf, 1);
+ setenv("TIZEN_GLIB_CONTEXT", "0", 1);
__set_lang_env();
__set_region_env();