Fix processing of call files when using KQueue on OS X
authorMatthew Jordan <mjordan@digium.com>
Fri, 15 Mar 2013 01:24:23 +0000 (01:24 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 15 Mar 2013 01:24:23 +0000 (01:24 +0000)
commitd1d66c38781b8d2cc6bad08634696e9f825a28ff
tree88dca7343a0a7a6b7860364f9ff7f5b9369554e0
parent7a952f1841f6e6de78663d6a66df991d2689a7f6
Fix processing of call files when using KQueue on OS X

In certain situations, call files are not processed when using KQueue with
pbx_spool. Asterisk was sending an invalid timeout value when the spool
directory is empty, causing the call to kevent to error immediately. This
can create a tight loop, increasing the CPU load on the system.

(closes issue ASTERISK-21176)
Reported by: Carlton O'Riley
patches:
  kqueue_osx.patch uploaded by coriley (License 6473)
........

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

Merged revisions 383121 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383122 65c4cc65-6c06-0410-ace0-fbb531ad65f3
pbx/pbx_spool.c