summaryrefslogtreecommitdiff
path: root/doc/en/weechat_plugin_api.en.asciidoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-07-18 20:03:34 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-07-18 20:03:34 +0200
commit3b2ee85b04f8cfabb10b42daf41f91dc95d368eb (patch)
tree8ae678e325b807da9c3b587a58b6e92c481ea895 /doc/en/weechat_plugin_api.en.asciidoc
parent23983b125aa37a87ee439cd9b6f7f417e8b2c079 (diff)
downloadweechat-3b2ee85b04f8cfabb10b42daf41f91dc95d368eb.zip
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.
Diffstat (limited to 'doc/en/weechat_plugin_api.en.asciidoc')
-rw-r--r--doc/en/weechat_plugin_api.en.asciidoc3
1 files changed, 3 insertions, 0 deletions
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