author | Lijo George<lijo.x.george@oracle.com> |
Thu, 23 Feb 2017 01:05:08 -0800 | |
changeset 7683 | 7955769fefe6 |
permissions | -rw-r--r-- |
7683
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
1 |
This patch has been developed inhouse and has been submitted upstream. |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
2 |
Details can be found at |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
3 |
https://github.com/att/ast/issues/30 |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
4 |
--- INIT.2012-08-01.old/src/cmd/ksh93/sh/io.c 2017-01-04 14:41:25.199402375 +0000 |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
5 |
+++ INIT.2012-08-01/src/cmd/ksh93/sh/io.c 2017-01-04 14:32:20.279449987 +0000 |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
6 |
@@ -64,9 +64,9 @@ |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
7 |
|
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
8 |
#ifndef ERROR_PIPE |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
9 |
#ifdef ECONNRESET |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
10 |
-#define ERROR_PIPE(e) ((e)==EPIPE||(e)==ECONNRESET) |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
11 |
+#define ERROR_PIPE(e) ((e)==EPIPE||(e)==ECONNRESET||(e)==EIO) |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
12 |
#else |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
13 |
-#define ERROR_PIPE(e) ((e)==EPIPE) |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
14 |
+#define ERROR_PIPE(e) ((e)==EPIPE||(e)==EIO) |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
15 |
#endif |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
16 |
#endif |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
17 |
|
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
18 |
--- INIT.2012-08-01.old/src/lib/libast/include/error.h 2017-02-17 02:39:37.507460057 +0000 |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
19 |
+++ INIT.2012-08-01/src/lib/libast/include/error.h 2017-02-17 04:42:38.872435651 +0000 |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
20 |
@@ -85,9 +85,9 @@ |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
21 |
#define ERROR_SET 0x0080 /* set context */ |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
22 |
|
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
23 |
#ifdef ECONNRESET |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
24 |
-#define ERROR_PIPE(e) ((e)==EPIPE||(e)==ECONNRESET) |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
25 |
+#define ERROR_PIPE(e) ((e)==EPIPE||(e)==ECONNRESET||(e)==EIO) |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
26 |
#else |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
27 |
-#define ERROR_PIPE(e) ((e)==EPIPE) |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
28 |
+#define ERROR_PIPE(e) ((e)==EPIPE||(e)==EIO) |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
29 |
#endif |
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
30 |
|
7955769fefe6
20855453 ksh93 echo displaying wrong variable value due to missing EIO handling
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
31 |
/* |