1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

core: display timeout for hook_process command only if debug for core is enabled (task #11401)

This commit is contained in:
Sebastien Helleu
2011-10-09 10:33:05 +02:00
parent 298fde23fe
commit 2af9c4ba92
2 changed files with 10 additions and 5 deletions
+3 -1
View File
@@ -1,12 +1,14 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.6-rc1, 2011-10-07
v0.3.6-rc1, 2011-10-09
Version 0.3.6 (under dev!)
--------------------------
* core: display timeout for hook_process command only if debug for core is
enabled (task #11401)
* core: bufferize lines displayed before core buffer is created, to display them
in buffer when it is created
* core: fix display of background color in chat area after line feed
+7 -4
View File
@@ -1532,10 +1532,13 @@ hook_process_timer_cb (void *arg_hook_process, int remaining_calls)
if (remaining_calls == 0)
{
hook_process_send_buffers (hook_process, WEECHAT_HOOK_PROCESS_ERROR);
gui_chat_printf (NULL,
_("End of command '%s', timeout reached (%.1fs)"),
HOOK_PROCESS(hook_process, command),
((float)HOOK_PROCESS(hook_process, timeout)) / 1000);
if (weechat_debug_core >= 1)
{
gui_chat_printf (NULL,
_("End of command '%s', timeout reached (%.1fs)"),
HOOK_PROCESS(hook_process, command),
((float)HOOK_PROCESS(hook_process, timeout)) / 1000);
}
kill (HOOK_PROCESS(hook_process, child_pid), SIGKILL);
usleep (1000);
unhook (hook_process);