summaryrefslogtreecommitdiff
path: root/threadproc/os2/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'threadproc/os2/proc.c')
-rw-r--r--threadproc/os2/proc.c2
1 files changed, 1 insertions, 1 deletions
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;