Files
asterisk/apps
Sean Bright 5152a05416 res_agi.c: Ensure SIGCHLD handler functions are properly balanced.
Calls to `ast_replace_sigchld()` and `ast_unreplace_sigchld()` must be
balanced to ensure that we can capture the exit status of child
processes when we need to. This extends to functions that call
`ast_replace_sigchld()` and `ast_unreplace_sigchld()` such as
`ast_safe_fork()` and `ast_safe_fork_cleanup()`.

The primary change here is ensuring that we do not call
`ast_safe_fork_cleanup()` in `res_agi.c` if we have not previously
called `ast_safe_fork()`.

Additionally we reinforce some of the documentation and add an
assertion to, ideally, catch this sooner were this to happen again.

Fixes #922

(cherry picked from commit 243f20a78d)
2024-11-14 20:01:34 +00:00
..
2019-05-10 10:22:55 -06:00
2021-11-18 10:37:56 -06:00
2021-11-18 10:37:56 -06:00
2024-01-12 18:32:13 +00:00
2022-05-09 08:21:45 -05:00
2021-11-18 10:37:56 -06:00
2023-01-31 11:23:11 -06:00
2021-08-19 11:18:30 -05:00
2021-11-16 16:49:13 -06:00
2021-11-18 10:37:56 -06:00
2024-01-12 18:32:13 +00:00
2018-05-11 09:48:58 -04:00
2021-11-16 05:38:29 -06:00
2021-11-16 05:38:29 -06:00