aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 9b9fe5b6d..4c8a28911 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8553,7 +8553,7 @@ preadfd(void)
8553 goto retry; 8553 goto retry;
8554 } 8554 }
8555 if (nr < 0 && errno == 0) { 8555 if (nr < 0 && errno == 0) {
8556 /* Ctrl+D presend */ 8556 /* Ctrl+D pressed */
8557 nr = 0; 8557 nr = 0;
8558 } 8558 }
8559 } 8559 }
@@ -8564,8 +8564,8 @@ preadfd(void)
8564 if (nr < 0) { 8564 if (nr < 0) {
8565 if (parsefile->fd == 0 && errno == EWOULDBLOCK) { 8565 if (parsefile->fd == 0 && errno == EWOULDBLOCK) {
8566 int flags = fcntl(0, F_GETFL); 8566 int flags = fcntl(0, F_GETFL);
8567 if (flags >= 0 && flags & O_NONBLOCK) { 8567 if (flags >= 0 && (flags & O_NONBLOCK)) {
8568 flags &=~ O_NONBLOCK; 8568 flags &= ~O_NONBLOCK;
8569 if (fcntl(0, F_SETFL, flags) >= 0) { 8569 if (fcntl(0, F_SETFL, flags) >= 0) {
8570 out2str("sh: turning off NDELAY mode\n"); 8570 out2str("sh: turning off NDELAY mode\n");
8571 goto retry; 8571 goto retry;