diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2008-05-31 23:01:15 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2008-05-31 23:01:15 +0000 |
commit | a54fe1ca9c33931d7c4381a84ee11454f9831c08 (patch) | |
tree | 16cc7f849128603b27ba13f7bdb8ae11e1eadd30 /net/asterisk16/files/patch-main::manager.c | |
parent | - Update to 1.11.3 (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_5_EOL'.5-eol
Notes
Notes:
svn path=/head/; revision=214069
svn path=/tags/RELEASE_5_EOL/; revision=214070; tag=5-eol
Diffstat (limited to 'net/asterisk16/files/patch-main::manager.c')
-rw-r--r-- | net/asterisk16/files/patch-main::manager.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/net/asterisk16/files/patch-main::manager.c b/net/asterisk16/files/patch-main::manager.c deleted file mode 100644 index 686068b09e09..000000000000 --- a/net/asterisk16/files/patch-main::manager.c +++ /dev/null @@ -1,31 +0,0 @@ ---- main/manager.c.orig 2008-04-02 15:49:38.000000000 +0300 -+++ main/manager.c 2008-04-02 15:42:18.000000000 +0300 -@@ -176,6 +176,7 @@ - struct eventqent *eventq; - /* Timeout for ast_carefulwrite() */ - int writetimeout; -+ int pending_event; - AST_LIST_ENTRY(mansession) list; - }; - -@@ -2214,6 +2215,11 @@ - fds[0].events = POLLIN; - do { - ast_mutex_lock(&s->__lock); -+ if (s->pending_event) { -+ s->pending_event = 0; -+ ast_mutex_unlock(&s->__lock); -+ return 0; -+ } - s->waiting_thread = pthread_self(); - ast_mutex_unlock(&s->__lock); - -@@ -2475,6 +2481,8 @@ - ast_mutex_lock(&s->__lock); - if (s->waiting_thread != AST_PTHREADT_NULL) - pthread_kill(s->waiting_thread, SIGURG); -+ else -+ s->pending_event = 1; - ast_mutex_unlock(&s->__lock); - } - AST_LIST_UNLOCK(&sessions); |