From ff4596e45ca9bff5995f912efb1f49d22823c82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 25 Aug 2023 13:35:50 +0200 Subject: core: add option `callbacks` in command `/debug` --- src/core/hook/wee-hook-process.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/hook/wee-hook-process.c') diff --git a/src/core/hook/wee-hook-process.c b/src/core/hook/wee-hook-process.c index a779f0144..4de66b131 100644 --- a/src/core/hook/wee-hook-process.c +++ b/src/core/hook/wee-hook-process.c @@ -792,6 +792,7 @@ void hook_process_exec () { struct t_hook *ptr_hook, *next_hook; + struct t_hook_exec_cb hook_exec_cb; hook_exec_start (); @@ -804,9 +805,9 @@ hook_process_exec () && !ptr_hook->running && (HOOK_PROCESS(ptr_hook, child_pid) == 0)) { - ptr_hook->running = 1; + hook_callback_start (ptr_hook, &hook_exec_cb); hook_process_run (ptr_hook); - ptr_hook->running = 0; + hook_callback_end (ptr_hook, &hook_exec_cb); } ptr_hook = next_hook; -- cgit v1.2.3