summaryrefslogtreecommitdiff
path: root/src/core/hook/wee-hook-process.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-08-25 13:35:50 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-08-25 13:35:50 +0200
commitff4596e45ca9bff5995f912efb1f49d22823c82f (patch)
tree8f0b81ed60016c5a98a3ce51058a09b588e78976 /src/core/hook/wee-hook-process.c
parentcc2bb4b8cf36c7b454f5219cff5a6113e3a02cd4 (diff)
downloadweechat-ff4596e45ca9bff5995f912efb1f49d22823c82f.zip
core: add option `callbacks` in command `/debug`
Diffstat (limited to 'src/core/hook/wee-hook-process.c')
-rw-r--r--src/core/hook/wee-hook-process.c5
1 files changed, 3 insertions, 2 deletions
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;