From 639930869ad90f7af68b883e375d701c9032bc97 Mon Sep 17 00:00:00 2001 From: Ben Cohen Date: Fri, 8 Sep 2017 17:09:50 +0100 Subject: [PATCH] Remove EAGAIN/EWOULDBLOCK from blocking read/write --- channels/sshagent/client/sshagent_main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/channels/sshagent/client/sshagent_main.c b/channels/sshagent/client/sshagent_main.c index 94d96c119..e57f190d7 100644 --- a/channels/sshagent/client/sshagent_main.c +++ b/channels/sshagent/client/sshagent_main.c @@ -149,9 +149,7 @@ static void *sshagent_read_thread(void *data) } else if (bytes_read < 0) { - if (errno != EAGAIN - && errno != EWOULDBLOCK - && errno != EINTR) + if (errno != EINTR) { WLog_ERR(TAG, "Error reading from sshagent, errno=%d", @@ -205,9 +203,7 @@ static UINT sshagent_on_data_received(IWTSVirtualChannelCallback* pChannelCallba bytes_to_write); if (bytes_written < 0) { - if (errno != EAGAIN - && errno != EWOULDBLOCK - && errno != EINTR) + if (errno != EINTR) { WLog_ERR(TAG, "Error writing to sshagent, errno=%d",