diff options
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serverloop.c b/serverloop.c index c1eb2885..e370f63a 100644 --- a/serverloop.c +++ b/serverloop.c @@ -391,7 +391,7 @@ process_input(fd_set *readset) len = read(fdout, buf, sizeof(buf)); if (len < 0 && (errno == EINTR || errno == EAGAIN)) { /* do nothing */ -#ifdef PTY_ZEROREAD +#ifndef PTY_ZEROREAD } else if (len <= 0) { #else } else if (len < 0 || (len == 0 && errno != 0)) { @@ -408,7 +408,7 @@ process_input(fd_set *readset) len = read(fderr, buf, sizeof(buf)); if (len < 0 && (errno == EINTR || errno == EAGAIN)) { /* do nothing */ -#ifdef PTY_ZEROREAD +#ifndef PTY_ZEROREAD } else if (len <= 0) { #else } else if (len < 0 || (len == 0 && errno != 0)) { |