summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorrpluem <rpluem@13f79535-47bb-0310-9956-ffa450edef68>2009-06-10 15:44:03 +0000
committerrpluem <rpluem@13f79535-47bb-0310-9956-ffa450edef68>2009-06-10 15:44:03 +0000
commitd52257c47c5e80d0fe9fd341c25dbfa6be59f0d3 (patch)
treec36c074f5a3f4fd567cb739864b7f870f3acb31c /threadproc
parent5d4218dfa00c9451421b593c8470fe0b27d92df2 (diff)
downloadlibapr-d52257c47c5e80d0fe9fd341c25dbfa6be59f0d3.tar.gz
Merge r783398 from trunk:
* We need to disable inheritance in the case of success like in the cases for stdout and stdin. Submitted by: rpluem Reviewed by: rpluem git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@783399 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/unix/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c
index d07540138..283706cfb 100644
--- a/threadproc/unix/proc.c
+++ b/threadproc/unix/proc.c
@@ -78,7 +78,7 @@ APR_DECLARE(apr_status_t) apr_procattr_io_set(apr_procattr_t *attr,
if ((err != APR_NO_PIPE) && (err != APR_NO_FILE)) {
if ((rv = apr_file_pipe_create_ex(&attr->parent_err, &attr->child_err,
- err, attr->pool)) != APR_SUCCESS)
+ err, attr->pool)) == APR_SUCCESS)
rv = apr_file_inherit_unset(attr->parent_err);
if (rv != APR_SUCCESS)
return rv;