summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--threadproc/beos/proc.c2
-rw-r--r--threadproc/netware/proc.c2
-rw-r--r--threadproc/os2/proc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/threadproc/beos/proc.c b/threadproc/beos/proc.c
index 2623b70d1..ee8afb8d1 100644
--- a/threadproc/beos/proc.c
+++ b/threadproc/beos/proc.c
@@ -88,7 +88,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;
diff --git a/threadproc/netware/proc.c b/threadproc/netware/proc.c
index 5fb26913c..026ca6fd7 100644
--- a/threadproc/netware/proc.c
+++ b/threadproc/netware/proc.c
@@ -95,7 +95,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;
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c
index 8e4a4a3b6..bae2785f0 100644
--- a/threadproc/os2/proc.c
+++ b/threadproc/os2/proc.c
@@ -99,7 +99,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;