X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common%2Ftts_config_mgr.c;h=1522950376d9ff5fce2c289e2c3d8d2d6079b4e4;hb=f09e5290b213b4bb7f6f2bdf49188008e363aec6;hp=21ccd8ab0f85c176b0ff7c4e2d8443dca58f8a4c;hpb=98d654836e34af8982ed51984ddf744d258dc723;p=platform%2Fcore%2Fuifw%2Ftts.git diff --git a/common/tts_config_mgr.c b/common/tts_config_mgr.c index 21ccd8a..1522950 100644 --- a/common/tts_config_mgr.c +++ b/common/tts_config_mgr.c @@ -495,9 +495,11 @@ Eina_Bool tts_config_mgr_inotify_event_cb(void* data, Ecore_Fd_Handler *fd_handl free(lang); lang = NULL; } - } else if (IN_IGNORED == event.mask) { - SLOG(LOG_ERROR, tts_tag(), "[ERROR] IN_IGNORED event"); + } else if (IN_DELETE_SELF == event.mask) { + SLOG(LOG_ERROR, tts_tag(), "[ERROR] IN_DELETE_SELF event"); + tts_parser_unload_config(g_config_info); + tts_parser_reset(); tts_parser_load_config(&g_config_info); } else { SLOG(LOG_ERROR, tts_tag(), "[ERROR] Undefined event (0x%x)", event.mask); @@ -521,7 +523,7 @@ int __tts_config_mgr_register_config_event() } g_config_fd_noti = fd; - wd = inotify_add_watch(fd, TTS_CONFIG, IN_CLOSE_WRITE); + wd = inotify_add_watch(fd, TTS_CONFIG, IN_CLOSE_WRITE|IN_DELETE_SELF); g_config_wd_noti = wd; g_config_fd_handler_noti = ecore_main_fd_handler_add(fd, ECORE_FD_READ,