mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
fifo: remove conditional directive breaking condition (closes #875)
This commit is contained in:
committed by
Sébastien Helleu
parent
9eafa1e461
commit
761ac58aa2
@@ -245,7 +245,7 @@ fifo_fd_cb (const void *pointer, void *data, int fd)
|
||||
{
|
||||
static char buffer[4096 + 2];
|
||||
char *buf2, *pos, *ptr_buf, *next_ptr_buf;
|
||||
int num_read;
|
||||
int num_read, check_error;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
@@ -311,11 +311,11 @@ fifo_fd_cb (const void *pointer, void *data, int fd)
|
||||
{
|
||||
if (num_read < 0)
|
||||
{
|
||||
check_error = (errno == EAGAIN);
|
||||
#ifdef __CYGWIN__
|
||||
if ((errno == EAGAIN) || (errno == ECOMM))
|
||||
#else
|
||||
if (errno == EAGAIN)
|
||||
check_error = check_error || (errno == ECOMM);
|
||||
#endif /* __CYGWIN__ */
|
||||
if (check_error)
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
weechat_printf (NULL,
|
||||
|
||||
Reference in New Issue
Block a user