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 pipe.c
Date Thu, 06 Mar 2003 08:56:05 GMT
jorton      2003/03/06 00:56:05

  Modified:    file_io/unix pipe.c
  Log:
  Make apr_file_inherit_set/unset work for pipes created by Unix
  apr_file_pipe_create() implementation.
  
  Submitted by: Joe Orton, Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net>
  
  Revision  Changes    Path
  1.62      +4 -0      apr/file_io/unix/pipe.c
  
  Index: pipe.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/pipe.c,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- pipe.c	7 Jan 2003 00:52:53 -0000	1.61
  +++ pipe.c	6 Mar 2003 08:56:04 -0000	1.62
  @@ -56,6 +56,8 @@
   #include "apr_strings.h"
   #include "apr_portable.h"
   
  +#include "apr_arch_inherit.h"
  +
   /* Figure out how to get pipe block/nonblock on BeOS...
    * Basically, BONE7 changed things again so that ioctl didn't work,
    * but now fcntl does, hence we need to do this extra checking.
  @@ -208,6 +210,7 @@
       (*in)->blocking = BLK_ON;
       (*in)->timeout = -1;
       (*in)->ungetchar = -1;
  +    (*in)->flags = APR_INHERIT;
   #if APR_HAS_THREADS
       (*in)->thlock = NULL;
   #endif
  @@ -219,6 +222,7 @@
       (*out)->fname = NULL;
       (*out)->buffered = 0;
       (*out)->blocking = BLK_ON;
  +    (*out)->flags = APR_INHERIT;
       (*out)->timeout = -1;
   #if APR_HAS_THREADS
       (*out)->thlock = NULL;
  
  
  

Mime
View raw message