summaryrefslogtreecommitdiff
path: root/file_io/unix/pipe.c
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-11-04 16:34:50 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-11-04 16:34:50 +0000
commit0e384c725364f49d1f97c19623a69a0362041626 (patch)
tree186fdb86df3b3b37baaa3b1804029dfd18766155 /file_io/unix/pipe.c
parent02799d1769e2467ba214ccdb1db297f40b573bcd (diff)
downloadlibapr-0e384c725364f49d1f97c19623a69a0362041626.tar.gz
Make non-blocking reads from pipes work through the bucket interface.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/unix/pipe.c')
-rw-r--r--file_io/unix/pipe.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/file_io/unix/pipe.c b/file_io/unix/pipe.c
index 24cc5f5f2..a6697f398 100644
--- a/file_io/unix/pipe.c
+++ b/file_io/unix/pipe.c
@@ -145,6 +145,13 @@ apr_status_t apr_set_pipe_timeout(apr_file_t *thepipe, apr_interval_time_t timeo
return APR_EINVAL;
}
+apr_status_t apr_get_pipe_timeout(apr_file_t *thepipe, apr_interval_time_t *timeout)
+{
+ if (thepipe->pipe == 1) {
+ *timeout = thepipe->timeout;
+ }
+}
+
apr_status_t apr_create_pipe(apr_file_t **in, apr_file_t **out, apr_pool_t *cont)
{
int filedes[2];