1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

core: fix random timeouts when a lot of concurrent processes are launched with hook_process (issue #2033)

This commit is contained in:
Sébastien Helleu
2023-10-20 21:00:22 +02:00
parent 8c4ff51beb
commit a9c410ff23
5 changed files with 20 additions and 11 deletions
+1 -1
View File
@@ -862,7 +862,7 @@ hook_process_free_data (struct t_hook *hook)
if (HOOK_PROCESS(hook, child_pid) > 0)
{
kill (HOOK_PROCESS(hook, child_pid), SIGKILL);
hook_schedule_clean_children ();
hook_schedule_clean_process (HOOK_PROCESS(hook, child_pid));
HOOK_PROCESS(hook, child_pid) = 0;
}
if (HOOK_PROCESS(hook, child_read[HOOK_PROCESS_STDIN]) != -1)