aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 15:21:20 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 15:21:20 +0000
commit0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2 (patch)
tree6709ddd6071a9c238ba69233540bbcfe560c6a44 /shell/ash.c
parent67758035a4fe040c6ac69b39d61bcd6bddd7b827 (diff)
parent56a3b82e9692a25ef9c9269e88feac0d579ce8e8 (diff)
downloadbusybox-w32-0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2.tar.gz
busybox-w32-0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2.tar.bz2
busybox-w32-0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2.zip
Merge commit '56a3b82e9692a25ef9c9269e88feac0d579ce8e8' into merge
Conflicts: coreutils/ls.c include/platform.h libbb/bb_basename.c
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c
index eaaa71967..a809bf181 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -6276,7 +6276,7 @@ expbackq(union node *cmd, int quoted, int quotes)
6276 read: 6276 read:
6277 if (in.fd < 0) 6277 if (in.fd < 0)
6278 break; 6278 break;
6279 i = nonblock_safe_read(in.fd, buf, sizeof(buf)); 6279 i = nonblock_immune_read(in.fd, buf, sizeof(buf), /*loop_on_EINTR:*/ 1);
6280 TRACE(("expbackq: read returns %d\n", i)); 6280 TRACE(("expbackq: read returns %d\n", i));
6281 if (i <= 0) 6281 if (i <= 0)
6282 break; 6282 break;
@@ -10120,7 +10120,7 @@ preadfd(void)
10120#if ENABLE_FEATURE_EDITING 10120#if ENABLE_FEATURE_EDITING
10121 retry: 10121 retry:
10122 if (!iflag || g_parsefile->pf_fd != STDIN_FILENO) 10122 if (!iflag || g_parsefile->pf_fd != STDIN_FILENO)
10123 nr = nonblock_safe_read(g_parsefile->pf_fd, buf, IBUFSIZ - 1); 10123 nr = nonblock_immune_read(g_parsefile->pf_fd, buf, IBUFSIZ - 1, /*loop_on_EINTR:*/ 1);
10124 else { 10124 else {
10125 int timeout = -1; 10125 int timeout = -1;
10126# if ENABLE_ASH_IDLE_TIMEOUT 10126# if ENABLE_ASH_IDLE_TIMEOUT
@@ -10166,10 +10166,10 @@ preadfd(void)
10166 } 10166 }
10167 } 10167 }
10168#else 10168#else
10169 nr = nonblock_safe_read(g_parsefile->pf_fd, buf, IBUFSIZ - 1); 10169 nr = nonblock_immune_read(g_parsefile->pf_fd, buf, IBUFSIZ - 1, /*loop_on_EINTR:*/ 1);
10170#endif 10170#endif
10171 10171
10172#if 0 /* disabled: nonblock_safe_read() handles this problem */ 10172#if 0 /* disabled: nonblock_immune_read() handles this problem */
10173 if (nr < 0) { 10173 if (nr < 0) {
10174 if (parsefile->fd == 0 && errno == EWOULDBLOCK) { 10174 if (parsefile->fd == 0 && errno == EWOULDBLOCK) {
10175 int flags = fcntl(0, F_GETFL); 10175 int flags = fcntl(0, F_GETFL);