Sean Bright
7973b7474a
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 c80ce750bb )
2024-11-14 20:00:45 +00:00
..
2024-03-07 14:16:38 +00:00
2019-05-10 10:22:55 -06:00
2021-11-18 10:38:16 -06:00
2021-11-18 10:38:16 -06:00
2024-03-07 14:16:38 +00:00
2021-03-16 11:04:45 -05:00
2024-01-12 18:21:33 +00:00
2024-01-12 18:21:33 +00:00
2021-03-16 11:04:45 -05:00
2020-01-05 21:32:01 -06:00
2022-09-26 10:41:51 -05:00
2024-09-12 18:44:38 +00:00
2019-11-18 08:30:45 -06:00
2024-01-12 18:21:32 +00:00
2024-09-12 18:44:38 +00:00
2024-01-12 18:21:33 +00:00
2021-08-16 11:48:10 -05:00
2024-03-07 14:16:39 +00:00
2019-11-18 08:30:45 -06:00
2024-01-12 18:21:32 +00:00
2022-06-27 10:42:29 -05:00
2022-04-27 02:06:59 -05:00
2021-09-21 11:46:36 -05:00
2021-08-16 11:48:10 -05:00
2022-05-09 08:21:58 -05:00
2024-01-12 18:21:32 +00:00
2021-11-15 14:39:42 -06:00
2020-04-20 11:03:46 -05:00
2021-08-16 11:48:10 -05:00
2024-03-07 14:16:38 +00:00
2021-08-16 11:48:10 -05:00
2021-11-18 10:38:16 -06:00
2023-09-06 16:46:46 +00:00
2022-11-28 17:41:42 -06:00
2023-01-30 16:17:20 -05:00
2021-08-19 11:18:00 -05:00
2021-11-30 09:40:14 -06:00
2024-05-09 13:47:40 +00:00
2021-11-16 18:42:02 -06:00
2022-08-17 11:04:55 -05:00
2021-08-16 11:48:10 -05:00
2021-08-19 09:09:22 -05:00
2021-08-16 11:48:10 -05:00
2021-11-18 10:38:16 -06:00
2024-11-14 20:00:45 +00:00
2024-07-11 13:22:18 +00:00
2024-01-12 18:21:33 +00:00
2019-11-18 08:30:45 -06:00
2020-01-09 05:33:06 -06:00
2022-02-25 13:03:58 -06:00
2023-05-08 17:55:16 +00:00
2022-04-27 02:06:59 -05:00
2022-04-27 02:06:59 -05:00
2023-01-31 13:00:01 -06:00
2024-01-12 18:21:33 +00:00
2020-01-05 21:09:03 -06:00
2024-03-07 14:16:38 +00:00
2024-05-09 13:47:40 +00:00
2021-12-02 10:38:23 -06:00
2021-11-15 14:39:42 -06:00
2020-06-19 09:15:44 -05:00
2021-03-16 11:04:45 -05:00
2021-11-15 14:39:42 -06:00
2021-01-27 11:42:10 -06:00
2021-08-16 11:48:10 -05:00
2021-09-21 12:09:59 -05:00
2019-06-28 07:32:03 -06:00
2019-06-28 07:32:03 -06:00
2019-06-28 07:32:03 -06:00
2019-06-28 07:32:03 -06:00
2024-11-14 20:00:45 +00:00
2022-04-27 02:06:59 -05:00
2021-11-30 11:49:43 -05:00
2019-06-28 07:32:03 -06:00