[svn-commits] kmoore: branch 10 r342329 - in /branches/10: ./ pbx/pbx_spool.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Oct 25 14:08:49 CDT 2011


Author: kmoore
Date: Tue Oct 25 14:08:45 2011
New Revision: 342329

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=342329
Log:
Fix compilation on Snow Leopard/FreeBSD for pbx_spool.c

One of the changes in the recent spool handling of hardlinks patch was just
outside a HAVE_INOTIFY block and caused compilation to fail in some build
environments.  This has been corrected.
........

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

Modified:
    branches/10/   (props changed)
    branches/10/pbx/pbx_spool.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/pbx/pbx_spool.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/pbx/pbx_spool.c?view=diff&rev=342329&r1=342328&r2=342329
==============================================================================
--- branches/10/pbx/pbx_spool.c (original)
+++ branches/10/pbx/pbx_spool.c Tue Oct 25 14:08:45 2011
@@ -718,6 +718,9 @@
 			} else if (res < 0 && errno != EINTR && errno != EAGAIN) {
 				ast_debug(1, "Got an error back from %s(2): %s\n", stage ? "read" : "poll", strerror(errno));
 			}
+			time(&now);
+		}
+		queue_created_files();
 #else
 			struct timespec ts2 = { next - now, 0 };
 			if (kevent(inotify_fd, NULL, 0, &kev, 1, &ts2) <= 0) {
@@ -730,11 +733,10 @@
 					queue_file(de->d_name, 0);
 				}
 			}
-#endif
 			time(&now);
 		}
-
-		queue_created_files();
+#endif
+
 		/* Empty the list of all entries ready to be processed */
 		AST_LIST_LOCK(&dirlist);
 		while (!AST_LIST_EMPTY(&dirlist) && AST_LIST_FIRST(&dirlist)->mtime <= now) {




More information about the svn-commits mailing list