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>
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;
}