From: Tilghman Lesher Date: Sun, 3 Oct 2010 20:02:29 +0000 (+0000) Subject: Get notification only when file is closed, not when created. X-Git-Tag: 1.8.0-rc3~4^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8eabdae78cc618022ea25280ba398c1c95055d3e;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.8@290066 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c index 7a76aa84b6..9b88dd4232 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 */