From 30d479c28c831a0d4f1fdb54a9e346b0fc176be1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 08:23:09 +0200 Subject: Adding upstream version 1.7.2. Signed-off-by: Daniel Baumann --- test/proc_child.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/proc_child.c (limited to 'test/proc_child.c') diff --git a/test/proc_child.c b/test/proc_child.c new file mode 100644 index 0000000..9f458b9 --- /dev/null +++ b/test/proc_child.c @@ -0,0 +1,21 @@ +#include "apr.h" +#include +#if APR_HAVE_UNISTD_H +#include +#endif +#if APR_HAVE_IO_H +#include +#endif +#include + +int main(void) +{ + char buf[256]; + int bytes, rv = 0; + + bytes = (int)read(STDIN_FILENO, buf, 256); + if (bytes > 0) + rv = write(STDOUT_FILENO, buf, (unsigned int)bytes) == bytes ? 0 : 1; + + return rv; +} -- cgit v1.2.3