]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel.c: Remove dead AST_GENERATOR_FD code.
authorSean Bright <sean@seanbright.com>
Thu, 6 Feb 2025 16:35:27 +0000 (11:35 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 20 Mar 2025 18:18:29 +0000 (18:18 +0000)
commitd402b59ec2a08de0c3e7ac25b5ec55a6560f1a4e
tree63fe9a8fd7b0008dc014d423ef975659343288a1
parentb709b339edf697eff01ab9c35a8e9a9e563b73d6
channel.c: Remove dead AST_GENERATOR_FD code.

Nothing ever sets the `AST_GENERATOR_FD`, so this block of code will
never execute. It also is the only place where the `generate` callback
is called with the channel lock held which made it difficult to reason
about the thread safety of `ast_generator`s.

In passing, also note that `AST_AGENT_FD` isn't used either.

(cherry picked from commit 0883e5e44d49553d70d87d12dcd715c3f114ca32)
include/asterisk/channel.h
main/channel.c