From ca06438c3bd83d1a78269ccf50d613f6826cce8b Mon Sep 17 00:00:00 2001 From: Alok Barsode Date: Thu, 5 Jan 2012 14:41:10 +0200 Subject: 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. --- src/timezone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/timezone.c b/src/timezone.c index d82502b4..37d71a05 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); -- cgit v1.2.3