]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config: Add file size and nanosecond resolution fields to the cached modified config...
authorRichard Mudgett <rmudgett@digium.com>
Wed, 19 Feb 2014 19:13:36 +0000 (19:13 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 19 Feb 2014 19:13:36 +0000 (19:13 +0000)
commit2817e3e1fd76555257dca270029a2b2c290a12df
treea728a60431b5ff81c5a1c46bd4890abc384debdd
parentdb258da365eead5881316b92bcbd19c99bc11dff
config: Add file size and nanosecond resolution fields to the cached modified config file information.

Repeatedly modifying config files and reloading too fast sometimes fails
to reload the configuration because the cached modification timestamp has
one second resolution.

* Added file size and nanosecond resolution fields to the cached config
file modification timestamp information.  Now if the file size changes or
the file system supports nanosecond resolution the modified file has a
better chance of being detected for reload.

* Added a missing unlock in an off-nominal code path.

(closes issue AST-1303)

Review: https://reviewboard.asterisk.org/r/3235/
........

Merged revisions 408387 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/1.8.15@408391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/config.c