diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-06-24 16:58:45 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-06-24 16:58:45 +1000 |
commit | 03890e44cd4814c2a9909febe5130fef722c7f4b (patch) | |
tree | 715af6e358a4292e7118ef902fc23d3541aa6b44 /serverloop.c | |
parent | 0249f93c4d9c552cdcaf2dec7af1f2fc20fdcbaa (diff) |
- (dtucker) [serverloop.c] Get ifdef/ifndef the right way around for the bug
#1102 workaround.
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 c1eb28853..e370f63a3 100644 --- a/serverloop.c +++ b/serverloop.c | |||
@@ -391,7 +391,7 @@ process_input(fd_set *readset) | |||
391 | len = read(fdout, buf, sizeof(buf)); | 391 | len = read(fdout, buf, sizeof(buf)); |
392 | if (len < 0 && (errno == EINTR || errno == EAGAIN)) { | 392 | if (len < 0 && (errno == EINTR || errno == EAGAIN)) { |
393 | /* do nothing */ | 393 | /* do nothing */ |
394 | #ifdef PTY_ZEROREAD | 394 | #ifndef PTY_ZEROREAD |
395 | } else if (len <= 0) { | 395 | } else if (len <= 0) { |
396 | #else | 396 | #else |
397 | } else if (len < 0 || (len == 0 && errno != 0)) { | 397 | } else if (len < 0 || (len == 0 && errno != 0)) { |
@@ -408,7 +408,7 @@ process_input(fd_set *readset) | |||
408 | len = read(fderr, buf, sizeof(buf)); | 408 | len = read(fderr, buf, sizeof(buf)); |
409 | if (len < 0 && (errno == EINTR || errno == EAGAIN)) { | 409 | if (len < 0 && (errno == EINTR || errno == EAGAIN)) { |
410 | /* do nothing */ | 410 | /* do nothing */ |
411 | #ifdef PTY_ZEROREAD | 411 | #ifndef PTY_ZEROREAD |
412 | } else if (len <= 0) { | 412 | } else if (len <= 0) { |
413 | #else | 413 | #else |
414 | } else if (len < 0 || (len == 0 && errno != 0)) { | 414 | } else if (len < 0 || (len == 0 && errno != 0)) { |