From f3475fa5f87e0353b537d6e5b2554247a09a2301 Mon Sep 17 00:00:00 2001 From: Jiwoong Im Date: Wed, 23 Mar 2016 14:28:10 +0900 Subject: [PATCH] modify to get errno using vconf_notify_key_changed - modify to get errno by vconf_get_ext_errno, if vconf_notify_key_changed returns error. Change-Id: Ia748405b413296ad8978e2eb59a7608b11cd5b33 Signed-off-by: Jiwoong Im --- vconf-compat/vconf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vconf-compat/vconf.c b/vconf-compat/vconf.c index 89d3c55..caebeb5 100644 --- a/vconf-compat/vconf.c +++ b/vconf-compat/vconf.c @@ -402,6 +402,7 @@ EXPORT int vconf_notify_key_changed(const char *key, vconf_callback_fn cb, { int r; struct noti *noti; + last_result = false; if (!key || !cb) { errno = EINVAL; @@ -420,6 +421,9 @@ EXPORT int vconf_notify_key_changed(const char *key, vconf_callback_fn cb, _close(); + if (r == 0) + last_result = true; + return r; } -- 2.7.4