diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2018-02-14 01:00:16 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2018-02-14 01:00:16 +0900 |
commit | 265047ed567c9c15f450d8d002603480a9f91daf (patch) | |
tree | 646b4bd5630a773c0721edcaba6c248faab26e2d | |
parent | 208ccd08b4a0069aef8a525deb03087dea0a6ec0 (diff) | |
download | aul-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.c | 5 |
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; } |