Merged revisions 112468 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Wed, 2 Apr 2008 17:36:49 +0000 (17:36 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 2 Apr 2008 17:36:49 +0000 (17:36 +0000)
commit2580dfc6fbc0f432a55ec554b373ced9b71d9430
tree004473913dbdcbdaddba45f26fa4a7cfc2bd03bd
parentb5cccfe1a408c2e5ba59404657afebfe0469f00c
Merged revisions 112468 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r112468 | mmichelson | 2008-04-02 12:36:04 -0500 (Wed, 02 Apr 2008) | 13 lines

Fix a race condition in the manager. It is possible that a new manager event
could be appended during a brief time when the manager is not waiting for input.
If an event comes during this period, we need to set an indicator that there is an
event pending so that the manager doesn't attempt to wait forever for an event that
already happened.

(closes issue #12354)
Reported by: bamby
Patches:
      manager_race_condition.diff uploaded by bamby (license 430)
  (comments added by me)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c