Index: pbx/pbx_spool.c =================================================================== --- pbx/pbx_spool.c (revision 299793) +++ pbx/pbx_spool.c (working copy) @@ -653,7 +653,7 @@ ast_debug(1, "Got an error back from %s(2): %s\n", stage ? "read" : "poll", strerror(errno)); } #else - struct timespec ts2 = { next - now, 0 }; + struct timespec ts2 = { next == INT_MAX ? now + 60 : next - now, 0 }; if (kevent(inotify_fd, NULL, 0, &kev, 1, &ts2) <= 0) { /* Interrupt or timeout, restart calculations */ continue;