summaryrefslogtreecommitdiff
path: root/src/timezone.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@linux.intel.com>2012-01-05 14:41:10 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-09 16:07:37 +0100
commitca06438c3bd83d1a78269ccf50d613f6826cce8b (patch)
tree80239f36c056886071e555e81e1c85866eb4986f /src/timezone.c
parenta32fa8da488dd7742bdf056605c39e9832aeb876 (diff)
downloadconnman-ca06438c3bd83d1a78269ccf50d613f6826cce8b.tar.gz
connman-ca06438c3bd83d1a78269ccf50d613f6826cce8b.tar.bz2
connman-ca06438c3bd83d1a78269ccf50d613f6826cce8b.zip
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.
Diffstat (limited to 'src/timezone.c')
-rw-r--r--src/timezone.c2
1 files changed, 1 insertions, 1 deletions
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);