diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2017-03-14 09:01:18 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2017-03-14 09:01:18 -0400 |
commit | 0b1399a2c19392b40e1eaf8049440071f2fdf642 (patch) | |
tree | a2f2f66f7b38ed773a0d630d93ea712409e1d269 /backend | |
parent | afd25c346aaffb3112e69003bca2785f45806357 (diff) | |
download | cups-0b1399a2c19392b40e1eaf8049440071f2fdf642.tar.gz |
Fix an issue with the error handling for the network backends (Issue #4979)
Diffstat (limited to 'backend')
-rw-r--r-- | backend/runloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/runloop.c b/backend/runloop.c index baa346273..13e522526 100644 --- a/backend/runloop.c +++ b/backend/runloop.c @@ -77,7 +77,7 @@ backendDrainOutput(int print_fd, /* I - Print file descriptor */ * Read error - bail if we don't see EAGAIN or EINTR... */ - if (errno != EAGAIN || errno != EINTR) + if (errno != EAGAIN && errno != EINTR) { fprintf(stderr, "DEBUG: Read failed: %s\n", strerror(errno)); _cupsLangPrintFilter(stderr, "ERROR", _("Unable to read print data.")); @@ -305,7 +305,7 @@ backendRunLoop( * Read error - bail if we don't see EAGAIN or EINTR... */ - if (errno != EAGAIN || errno != EINTR) + if (errno != EAGAIN && errno != EINTR) { fprintf(stderr, "DEBUG: Read failed: %s\n", strerror(errno)); _cupsLangPrintFilter(stderr, "ERROR", |