summaryrefslogtreecommitdiff
path: root/PC/generrmap.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-07 16:16:31 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-07 16:16:31 +0200
commit586bfe4500465442acff5043f7b589e4a8b97b6a (patch)
tree3b2af5c4db751fb4a103a9058335fb65ab342ad1 /PC/generrmap.c
parent7b847a46bca22797fcb3149d5e52627fc439ba18 (diff)
downloadcpython-git-586bfe4500465442acff5043f7b589e4a8b97b6a.tar.gz
Issue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described
as "The pipe is being closed") is now mapped to POSIX errno EPIPE (previously EINVAL).
Diffstat (limited to 'PC/generrmap.c')
-rw-r--r--PC/generrmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/generrmap.c b/PC/generrmap.c
index 0323cd4a08..953344c0d7 100644
--- a/PC/generrmap.c
+++ b/PC/generrmap.c
@@ -19,6 +19,9 @@ int main()
/* Issue #12802 */
if (i == ERROR_DIRECTORY)
errno = ENOTDIR;
+ /* Issue #13063 */
+ else if (i == ERROR_NO_DATA)
+ errno = EPIPE;
else
continue;
}