diff options
author | Alok Barsode <alok.barsode@linux.intel.com> | 2012-01-05 14:41:10 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-01-09 16:07:37 +0100 |
commit | ca06438c3bd83d1a78269ccf50d613f6826cce8b (patch) | |
tree | 80239f36c056886071e555e81e1c85866eb4986f /src/timezone.c | |
parent | a32fa8da488dd7742bdf056605c39e9832aeb876 (diff) | |
download | connman-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.c | 2 |
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); |