summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2018-02-14 01:00:16 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2018-02-14 01:00:16 +0900
commit265047ed567c9c15f450d8d002603480a9f91daf (patch)
tree646b4bd5630a773c0721edcaba6c248faab26e2d
parent208ccd08b4a0069aef8a525deb03087dea0a6ec0 (diff)
downloadaul-1-265047ed567c9c15f450d8d002603480a9f91daf.tar.gz
aul-1-265047ed567c9c15f450d8d002603480a9f91daf.tar.bz2
aul-1-265047ed567c9c15f450d8d002603480a9f91daf.zip
Fix aul_app_group_lower API
If the return value is an error, the exit flag should not be set. Change-Id: Ia3565acac58ad488b67eb62b8ee9e405704a5785 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/app_group.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app_group.c b/src/app_group.c
index aff839b3..80a6c9ad 100644
--- a/src/app_group.c
+++ b/src/app_group.c
@@ -231,7 +231,10 @@ API void aul_app_group_lower(int *exit)
int ret;
unsigned char dummy[1] = { 0 };
- ret = aul_sock_send_raw(AUL_UTIL_PID, getuid(), APP_GROUP_LOWER, dummy, 0, AUL_SOCK_NONE);
+ ret = aul_sock_send_raw(AUL_UTIL_PID, getuid(), APP_GROUP_LOWER,
+ dummy, 0, AUL_SOCK_NONE);
+ if (ret < 0)
+ return;
*exit = ret;
}