~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr/test/proc_child.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "apr.h"
 
2
#include <stdio.h>
 
3
#if APR_HAVE_UNISTD_H
 
4
#include <unistd.h>
 
5
#endif
 
6
#if APR_HAVE_IO_H
 
7
#include <io.h>
 
8
#endif
 
9
#include <stdlib.h>
 
10
 
 
11
int main(void)
 
12
{
 
13
    char buf[256];
 
14
    apr_ssize_t bytes;
 
15
    
 
16
    bytes = read(STDIN_FILENO, buf, 256);
 
17
    if (bytes > 0)
 
18
        write(STDOUT_FILENO, buf, bytes);
 
19
 
 
20
    return 0; /* just to keep the compiler happy */
 
21
}