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

« back to all changes in this revision

Viewing changes to srclib/apr/test/occhild.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 "apr_file_io.h"
 
3
#include "apr.h"
 
4
 
 
5
#if APR_HAVE_STDLIB_H
 
6
#include <stdlib.h>
 
7
#endif
 
8
 
 
9
int main(void)
 
10
{
 
11
    char buf[256];
 
12
    apr_file_t *err;
 
13
    apr_pool_t *p;
 
14
 
 
15
    apr_initialize();
 
16
    atexit(apr_terminate);
 
17
 
 
18
    apr_pool_create(&p, NULL);
 
19
    apr_file_open_stdin(&err, p);
 
20
 
 
21
    while (1) {
 
22
        apr_size_t length = 256;
 
23
        apr_file_read(err, buf, &length);
 
24
    }
 
25
    exit(0); /* just to keep the compiler happy */
 
26
}