]> 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)
committerSean Bright <sean@seanbright.com>
Tue, 11 Feb 2025 20:37:56 +0000 (20:37 +0000)
commit2cc2710e5f171cad57a7b5685662ba7545e6da02
tree32070c6ed96464db7b1f351d410e5fe61d374803
parente09b4dd97f6ebb143089d972d14da7f058a50f6d
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.
include/asterisk/channel.h
main/channel.c