/* calculate and output results */
-int compradre(struct data * a, struct data * b)
+static int compradre(struct data * a, struct data * b)
{
if ((a->ctime) < (b->ctime))
return -1;
return 0;
}
-int comprando(struct data * a, struct data * b)
+static int comprando(struct data * a, struct data * b)
{
if ((a->time) < (b->time))
return -1;
return 0;
}
-int compri(struct data * a, struct data * b)
+static int compri(struct data * a, struct data * b)
{
int p = a->time - a->ctime;
int q = b->time - b->ctime;
return 0;
}
-int compwait(struct data * a, struct data * b)
+static int compwait(struct data * a, struct data * b)
{
if ((a->waittime) < (b->waittime))
return -1;
/* --------------------------------------------------------- */
-/* Catch SIGPIPE signals */
-
-void pipehandler(int signal)
-{
- int i; /* loop variable */
-
- printf("Caught broken pipe signal after %ld requests. ", done);
-
- /* This means one of my connections is broken, but which one? */
- /* The safe route: close all our connections. */
- for (i = 0; i < concurrency; i++)
- close_connection(&con[i]);
-
- /* And start them back up */
- for (i = 0; i < concurrency; i++)
- start_connect(&con[i]);
-
- printf("Continuing...\n");
-}
-
-/* --------------------------------------------------------- */
-
/* run the tests */
static void test(void)
static void copyright(void)
{
if (!use_html) {
- printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.55 $> apache-1.3");
+ printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.56 $> apache-1.3");
printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
printf("Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/\n");
printf("\n");
}
else {
printf("<p>\n");
- printf(" This is ApacheBench, Version %s <i><%s></i> apache-1.3<br>\n", VERSION, "$Revision: 1.55 $");
+ printf(" This is ApacheBench, Version %s <i><%s></i> apache-1.3<br>\n", VERSION, "$Revision: 1.56 $");
printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
printf(" Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/<br>\n");
printf("</p>\n<p>\n");
exit(1);
}
#endif
- signal(SIGPIPE, SIG_IGN); /* Ignore writes to connections that
+ signal(SIGPIPE, SIG_IGN); /* Ignore writes to connections that
* have been closed at the other end.
* These writes are dealt with in the
* s_write() function. */