]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Get notification only when file is closed, not when created.
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 3 Oct 2010 20:02:29 +0000 (20:02 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 3 Oct 2010 20:02:29 +0000 (20:02 +0000)
(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

pbx/pbx_spool.c

index 7a76aa84b6be1aab16d39338e12c23a80499b34a..9b88dd42321079b74c205a158e35e7f23effcd83 100644 (file)
@@ -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 */