diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-03-06 08:56:04 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-03-06 08:56:04 +0000 |
commit | a041e7fb5685b8f6c043e3319a6a6c3f7236bde4 (patch) | |
tree | 52d6eecdf83d017f9690735ecba61df600820c13 | |
parent | 9834fa384a471d703f471b7cca8c2b5896384446 (diff) | |
download | libapr-a041e7fb5685b8f6c043e3319a6a6c3f7236bde4.tar.gz |
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>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64400 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | file_io/unix/pipe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/file_io/unix/pipe.c b/file_io/unix/pipe.c index 8b6fe6b34..97628682b 100644 --- a/file_io/unix/pipe.c +++ b/file_io/unix/pipe.c @@ -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 @@ APR_DECLARE(apr_status_t) apr_file_pipe_create(apr_file_t **in, apr_file_t **out (*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 @@ APR_DECLARE(apr_status_t) apr_file_pipe_create(apr_file_t **in, apr_file_t **out (*out)->fname = NULL; (*out)->buffered = 0; (*out)->blocking = BLK_ON; + (*out)->flags = APR_INHERIT; (*out)->timeout = -1; #if APR_HAS_THREADS (*out)->thlock = NULL; |