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/unix filedup.c
Date Wed, 19 Mar 2003 02:31:16 GMT
wrowe       2003/03/18 18:31:16

  Modified:    file_io/unix filedup.c
  Log:
    Fix bug #5 of the evening; always register the proper child_cleanup
    in apr_file_setaside(), based on the ->flags of the fd being set-aside.
  
  Revision  Changes    Path
  1.58      +3 -1      apr/file_io/unix/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filedup.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- filedup.c	19 Mar 2003 02:26:34 -0000	1.57
  +++ filedup.c	19 Mar 2003 02:31:15 -0000	1.58
  @@ -182,7 +182,9 @@
       if (!(old_file->flags & APR_FILE_NOCLEANUP)) {
           apr_pool_cleanup_register(p, (void *)(*new_file), 
                                     apr_unix_file_cleanup,
  -                                  apr_unix_file_cleanup);
  +                                  ((*new_file)->flags & APR_INHERIT)
  +                                     ? apr_pool_cleanup_null
  +                                     : apr_unix_file_cleanup);
       }
   
       old_file->filedes = -1;
  
  
  

Mime
View raw message