aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-10-03 20:02:29 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-10-03 20:02:29 +0000
commitf9c6940eeb6b7b7e18a77f1555d77a1ffbca2f09 (patch)
tree46b3cfde839bfdb95b13a659a5bbb4472ca408ff
parent4f913c53aa4ad0c52be6731405c479b5fdccf568 (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
-rw-r--r--pbx/pbx_spool.c2
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 */