apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/file_io/win32 filedup.c
Date Fri, 11 Jan 2002 10:19:04 GMT
wrowe       02/01/11 02:19:04

  Modified:    file_io/win32 filedup.c
  Log:
    Allow apr_file_dup() to behave as before, for a while longer
  
  Revision  Changes    Path
  1.37      +8 -0      apr/file_io/win32/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/win32/filedup.c,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- filedup.c	11 Jan 2002 09:53:21 -0000	1.36
  +++ filedup.c	11 Jan 2002 10:19:03 -0000	1.37
  @@ -64,6 +64,14 @@
   {
       HANDLE hproc = GetCurrentProcess();
       HANDLE newhand = NULL;
  +
  +    /* XXX Dirty, ugly backward compatibility hack
  +     * This is the reason that dup2 was introduced,
  +     * need to remove this thunk on short order!
  +     */
  +    if (*new_file) {
  +        return apr_file_dup2(new_file, old_file, p);
  +    }
           
       if (!DuplicateHandle(hproc, old_file->filehand, 
                            hproc, &newhand, 0, FALSE, 
  
  
  

Mime
View raw message