From 3b2ee85b04f8cfabb10b42daf41f91dc95d368eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 18 Jul 2015 20:03:34 +0200 Subject: core: fix crash if a file descriptor used in hook_fd() is too high (> 1024 on Linux/BSD) (closes #465) The calls to select() are replaced by poll(), which doesn't have limitation on file descriptor number. --- doc/en/weechat_plugin_api.en.asciidoc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/en/weechat_plugin_api.en.asciidoc') diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index c9b12cb88..222153ffd 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -7228,6 +7228,8 @@ hook = weechat.hook_timer(20 * 1000, 0, 0, "my_timer_cb", "") ==== hook_fd +_Updated in 1.3._ + Hook a file descriptor (file or socket). Prototype: @@ -7249,6 +7251,7 @@ Arguments: * 'flag_read': 1 = catch read event, 0 = ignore * 'flag_write': 1 = catch write event, 0 = ignore * 'flag_exception': 1 = catch exception event, 0 = ignore + (_WeeChat ≥ 1.3_: this argument is ignored and not used any more) * 'callback': function called a selected event occurs for file (or socket), arguments and return value: ** 'void *data': pointer -- cgit v1.2.3