From: Alok Barsode Date: Thu, 5 Jan 2012 12:41:10 +0000 (+0200) Subject: inotify: Change inotify mask. X-Git-Tag: 2.0_alpha~745 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca06438c3bd83d1a78269ccf50d613f6826cce8b;p=framework%2Fconnectivity%2Fconnman.git inotify: Change inotify mask. Use IN_CLOSE_WRITE instead of IN_MODIFY so the notifier is called once only after all the changes are written. Fixes BMC#23741. --- diff --git a/src/timezone.c b/src/timezone.c index d82502b..37d71a0 100644 --- a/src/timezone.c +++ b/src/timezone.c @@ -420,7 +420,7 @@ int __connman_timezone_init(void) dirname = g_path_get_dirname(ETC_LOCALTIME); wd = inotify_add_watch(fd, dirname, IN_DONT_FOLLOW | - IN_MODIFY | IN_MOVED_TO); + IN_CLOSE_WRITE | IN_MOVED_TO); g_free(dirname);