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 open.c
Date Wed, 19 Mar 2003 03:45:42 GMT
wrowe       2003/03/18 19:45:42

  Modified:    file_io/unix open.c
  Log:
    Clean up a runover line, and reflect that apr_os_file_put() does not
    register a cleanup whatsoever.
  
  Revision  Changes    Path
  1.111     +3 -2      apr/file_io/unix/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/open.c,v
  retrieving revision 1.110
  retrieving revision 1.111
  diff -u -r1.110 -r1.111
  --- open.c	6 Mar 2003 09:24:17 -0000	1.110
  +++ open.c	19 Mar 2003 03:45:42 -0000	1.111
  @@ -191,7 +191,8 @@
   
       if (!(flag & APR_FILE_NOCLEANUP)) {
           apr_pool_cleanup_register((*new)->pool, (void *)(*new), 
  -                                  apr_unix_file_cleanup, apr_unix_file_cleanup);
  +                                  apr_unix_file_cleanup, 
  +                                  apr_unix_file_cleanup);
       }
       return APR_SUCCESS;
   }
  @@ -241,7 +242,7 @@
       (*file)->timeout = -1;
       (*file)->ungetchar = -1; /* no char avail */
       (*file)->filedes = *dafile;
  -    (*file)->flags = flags;
  +    (*file)->flags = flags | APR_FILE_NOCLEANUP;
       (*file)->buffered = (flags & APR_BUFFERED) > 0;
   
       if ((*file)->buffered) {
  
  
  

Mime
View raw message