summaryrefslogtreecommitdiff
path: root/file_io/os2
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-10-14 06:12:00 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-10-14 06:12:00 +0000
commitb5484dae65d0482ce2a8654f2d8fc2a0531cd565 (patch)
tree18c84e24414419a396e11386f433f772ff548833 /file_io/os2
parent3f8fa300d9395bb352c4cf5ab902b6800a047b4f (diff)
downloadlibapr-b5484dae65d0482ce2a8654f2d8fc2a0531cd565.tar.gz
Had inverted read/write.
This is why you don't do things like this, in/out is ambiguous. (you write things in-to a pipe and read things out-of a pipe, well except in APR ;-) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@584489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/os2')
-rw-r--r--file_io/os2/pipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file_io/os2/pipe.c b/file_io/os2/pipe.c
index 15eb7c262..69eb97794 100644
--- a/file_io/os2/pipe.c
+++ b/file_io/os2/pipe.c
@@ -120,14 +120,14 @@ APR_DECLARE(apr_status_t) apr_file_pipe_create_ex(apr_file_t **in,
case APR_FULL_BLOCK:
break;
case APR_READ_BLOCK:
- apr_file_pipe_timeout_set(*in, 0);
+ apr_file_pipe_timeout_set(*out, 0);
break;
case APR_WRITE_BLOCK:
- apr_file_pipe_timeout_set(*out, 0);
+ apr_file_pipe_timeout_set(*in, 0);
break;
default:
- apr_file_pipe_timeout_set(*in, 0);
apr_file_pipe_timeout_set(*out, 0);
+ apr_file_pipe_timeout_set(*in, 0);
}
}