apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/file_io/unix open.c
Date Tue, 25 Nov 2003 09:11:11 GMT
jorton      2003/11/25 01:11:11

  Modified:    file_io/unix open.c
  Log:
  * file_io/unix/open.c (apr_os_file_put): Create the pollset.
  
  Revision  Changes    Path
  1.114     +6 -0      apr/file_io/unix/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/open.c,v
  retrieving revision 1.113
  retrieving revision 1.114
  diff -u -u -r1.113 -r1.114
  --- open.c	24 Nov 2003 00:17:23 -0000	1.113
  +++ open.c	25 Nov 2003 09:11:10 -0000	1.114
  @@ -249,6 +249,12 @@
       (*file)->flags = flags | APR_FILE_NOCLEANUP;
       (*file)->buffered = (flags & APR_BUFFERED) > 0;
   
  +#ifndef WAITIO_USES_POLL
  +    /* Create a pollset with room for one descriptor. */
  +    /* ### check return codes */
  +    (void) apr_pollset_create(&(*file)->pollset, 1, pool, 0);
  +#endif
  +
       if ((*file)->buffered) {
           (*file)->buffer = apr_palloc(pool, APR_FILE_BUFSIZE);
   #if APR_HAS_THREADS
  
  
  

Mime
View raw message