/[emacs]/emacs/src/w32.c
ViewVC logotype

Diff of /emacs/src/w32.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.75.2.1 by miles, Fri Apr 4 06:21:03 2003 UTC revision 1.75.2.2 by miles, Tue Oct 14 23:22:47 2003 UTC
# Line 3450  sys_pipe (int * phandles) Line 3450  sys_pipe (int * phandles)
3450    
3451    if (rc == 0)    if (rc == 0)
3452      {      {
3453        flags = FILE_PIPE | FILE_READ | FILE_BINARY;        /* Protect against overflow, since Windows can open more handles than
3454        fd_info[phandles[0]].flags = flags;           our fd_info array has room for.  */
3455          if (phandles[0] >= MAXDESC || phandles[1] >= MAXDESC)
3456            {
3457              _close (phandles[0]);
3458              _close (phandles[1]);
3459              rc = -1;
3460            }
3461          else
3462            {
3463              flags = FILE_PIPE | FILE_READ | FILE_BINARY;
3464              fd_info[phandles[0]].flags = flags;
3465    
3466        flags = FILE_PIPE | FILE_WRITE | FILE_BINARY;            flags = FILE_PIPE | FILE_WRITE | FILE_BINARY;
3467        fd_info[phandles[1]].flags = flags;            fd_info[phandles[1]].flags = flags;
3468            }
3469      }      }
3470    
3471    return rc;    return rc;
# Line 3955  void globals_of_w32 () Line 3966  void globals_of_w32 ()
3966  }  }
3967    
3968  /* end of nt.c */  /* end of nt.c */
3969    
3970    /* arch-tag: 90442dd3-37be-482b-b272-ac752e3049f1
3971       (do not change this comment) */

Legend:
Removed from v.1.75.2.1  
changed lines
  Added in v.1.75.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26