Mercurial > emacs
diff src/w32.c @ 88123:375f2633d815
New directory
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 08 Sep 2003 11:56:09 +0000 |
parents | 695cf19ef79e |
children | 68c22ea6027c |
line wrap: on
line diff
--- a/src/w32.c Thu Sep 04 04:00:49 2003 +0000 +++ b/src/w32.c Mon Sep 08 11:56:09 2003 +0000 @@ -3450,22 +3450,11 @@ if (rc == 0) { - /* Protect against overflow, since Windows can open more handles than - our fd_info array has room for. */ - if (phandles[0] >= MAXDESC || phandles[1] >= MAXDESC) - { - _close (phandles[0]); - _close (phandles[1]); - rc = -1; - } - else - { - flags = FILE_PIPE | FILE_READ | FILE_BINARY; - fd_info[phandles[0]].flags = flags; - - flags = FILE_PIPE | FILE_WRITE | FILE_BINARY; - fd_info[phandles[1]].flags = flags; - } + flags = FILE_PIPE | FILE_READ | FILE_BINARY; + fd_info[phandles[0]].flags = flags; + + flags = FILE_PIPE | FILE_WRITE | FILE_BINARY; + fd_info[phandles[1]].flags = flags; } return rc; @@ -3966,6 +3955,3 @@ } /* end of nt.c */ - -/* arch-tag: 90442dd3-37be-482b-b272-ac752e3049f1 - (do not change this comment) */