summaryrefslogtreecommitdiff
path: root/file_io/netware
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2003-03-19 05:35:08 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2003-03-19 05:35:08 +0000
commitca5abeb443e336466a14bbfa3aa5fab0c2226752 (patch)
tree99199e4fd853d25388f75efe7f72e27cb74623f0 /file_io/netware
parentc36ac278fdebc7472511de685103f6efb20b6e53 (diff)
downloadapr-ca5abeb443e336466a14bbfa3aa5fab0c2226752.tar.gz
Same fixes for netware as unix in pipe.c
BTW - that code *definately* violates the style guide; either repeat the assignments or indent the second line!!! git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64435 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/netware')
-rw-r--r--file_io/netware/pipe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/file_io/netware/pipe.c b/file_io/netware/pipe.c
index 43b5a7e22..52c7253c4 100644
--- a/file_io/netware/pipe.c
+++ b/file_io/netware/pipe.c
@@ -149,7 +149,7 @@ APR_DECLARE(apr_status_t) apr_os_pipe_put(apr_file_t **file,
(*file)->timeout = -1;
(*file)->ungetchar = -1; /* no char avail */
(*file)->filedes = *dafile;
- (*file)->flags = 0;
+ (*file)->flags = APR_FILE_NOCLEANUP;
(*file)->buffered = 0;
#if APR_HAS_THREADS
(*file)->thlock = NULL;
@@ -173,6 +173,8 @@ APR_DECLARE(apr_status_t) apr_file_pipe_create(apr_file_t **in, apr_file_t **out
(*out)->pool = pool;
(*in)->filedes = filedes[0];
(*out)->filedes = filedes[1];
+ (*in)->flags = APR_INHERIT;
+ (*out)->flags = APR_INHERIT;
(*in)->is_pipe =
(*out)->is_pipe = 1;
(*out)->fname =