diff options
author | Jaeho Lee <jaeho81.lee@samsung.com> | 2013-01-26 16:53:18 +0900 |
---|---|---|
committer | Jaeho Lee <jaeho81.lee@samsung.com> | 2013-01-26 16:53:18 +0900 |
commit | 3b0d5041fe1a69da382c93bd732dbc75023bcb84 (patch) | |
tree | 102eb2678050cebad41f08144c82dab997e47cd0 /alarm-manager.c | |
parent | 66b551cf9634a6d91a4afc9d184eceedd5589449 (diff) | |
download | alarm-manager-3b0d5041fe1a69da382c93bd732dbc75023bcb84.tar.gz alarm-manager-3b0d5041fe1a69da382c93bd732dbc75023bcb84.tar.bz2 alarm-manager-3b0d5041fe1a69da382c93bd732dbc75023bcb84.zip |
fixed prevent issue
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
Diffstat (limited to 'alarm-manager.c')
-rwxr-xr-x | alarm-manager.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/alarm-manager.c b/alarm-manager.c index 0d078b8..fac4d13 100755 --- a/alarm-manager.c +++ b/alarm-manager.c @@ -2407,7 +2407,7 @@ static void __hibernation_leave_callback() static bool __initialize_noti() { - + int ret = -1; int fd = heynoti_init(); if (fd < 0) { ALARM_MGR_EXCEPTION_PRINT("fail to heynoti_init\n"); @@ -2415,7 +2415,10 @@ static bool __initialize_noti() } heynoti_subscribe(fd, "HIBERNATION_LEAVE", __hibernation_leave_callback, NULL); - heynoti_attach_handler(fd); + ret = heynoti_attach_handler(fd); + if(ret<0) { + ALARM_MGR_EXCEPTION_PRINT("heynoti_attach_handler fail"); + } if (vconf_notify_key_changed (VCONFKEY_SYSTEM_TIMECHANGE, __on_system_time_changed, NULL) < 0) { |