summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-06-07 19:17:49 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-06-07 19:17:49 +0200
commitf21adaa6abbf1156f050a212f9feb0ba8256560e (patch)
treeda116ed3e84a6bdc2cbdd3d54eb5ada7bbbeb667
parent00abc2bde5b9adffcd0b987b07a68cc74edaea51 (diff)
downloadweechat-f21adaa6abbf1156f050a212f9feb0ba8256560e.zip
fifo: fix send error on Cygwin when something is received in the pipe (closes #436)
-rw-r--r--ChangeLog.asciidoc2
-rw-r--r--src/plugins/fifo/fifo.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc
index 3d6587593..f6fafae67 100644
--- a/ChangeLog.asciidoc
+++ b/ChangeLog.asciidoc
@@ -23,6 +23,8 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
=== Bugs fixed
+* fifo: fix send error on Cygwin when something is received in the pipe
+ (closes #436)
* irc: fix errors displayed on WHOX messages received (closes #376)
* lua: add detection of Lua 5.3
* xfer: fix parsing of DCC chat messages (handle "\r\n" at the end of messages)
diff --git a/src/plugins/fifo/fifo.c b/src/plugins/fifo/fifo.c
index a570742a8..cc10a90a1 100644
--- a/src/plugins/fifo/fifo.c
+++ b/src/plugins/fifo/fifo.c
@@ -357,7 +357,7 @@ fifo_read (void *data, int fd)
{
if (num_read < 0)
{
- if (errno == EAGAIN)
+ if ((errno == EAGAIN) || (errno == ECOMM))
return WEECHAT_RC_OK;
weechat_printf (NULL,