From f21adaa6abbf1156f050a212f9feb0ba8256560e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 7 Jun 2015 19:17:49 +0200 Subject: [PATCH] fifo: fix send error on Cygwin when something is received in the pipe (closes #436) --- ChangeLog.asciidoc | 2 ++ src/plugins/fifo/fifo.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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,