diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-03 20:02:29 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-03 20:02:29 +0000 |
commit | f9c6940eeb6b7b7e18a77f1555d77a1ffbca2f09 (patch) | |
tree | 46b3cfde839bfdb95b13a659a5bbb4472ca408ff /pbx/pbx_spool.c | |
parent | 4f913c53aa4ad0c52be6731405c479b5fdccf568 (diff) |
Get notification only when file is closed, not when created.
(closes issue #17924)
Reported by: mkeuter
Patches:
asterisk-1.8-bugid17924.patch uploaded by abelbeck (license 946)
Tested by: abelbeck
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@290066 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_spool.c')
-rw-r--r-- | pbx/pbx_spool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c index 7a76aa84b..9b88dd423 100644 --- a/pbx/pbx_spool.c +++ b/pbx/pbx_spool.c @@ -552,7 +552,7 @@ static void *scan_thread(void *unused) } #ifdef HAVE_INOTIFY - inotify_add_watch(inotify_fd, qdir, IN_CREATE | IN_MOVED_TO); + inotify_add_watch(inotify_fd, qdir, IN_CLOSE_WRITE | IN_MOVED_TO); #endif /* First, run through the directory and clear existing entries */ |