diff options
Diffstat (limited to 'benchmarks/siege/files')
-rw-r--r-- | benchmarks/siege/files/patch-src::hash.h | 10 | ||||
-rw-r--r-- | benchmarks/siege/files/patch-src::main.c | 15 | ||||
-rw-r--r-- | benchmarks/siege/files/siege.config.in | 27 |
3 files changed, 52 insertions, 0 deletions
diff --git a/benchmarks/siege/files/patch-src::hash.h b/benchmarks/siege/files/patch-src::hash.h new file mode 100644 index 000000000000..4bbd872c160b --- /dev/null +++ b/benchmarks/siege/files/patch-src::hash.h @@ -0,0 +1,10 @@ +--- src/hash.h.orig Thu Nov 27 00:33:32 2003 ++++ src/hash.h Thu Nov 27 00:35:25 2003 +@@ -23,6 +23,7 @@ + #define HASH_H + + #include <stdio.h> ++#include <unistd.h> + + typedef struct HASH_T *HASH; + diff --git a/benchmarks/siege/files/patch-src::main.c b/benchmarks/siege/files/patch-src::main.c new file mode 100644 index 000000000000..fb1139a47fff --- /dev/null +++ b/benchmarks/siege/files/patch-src::main.c @@ -0,0 +1,15 @@ +--- src/main.c.orig Thu Jul 17 21:50:43 2003 ++++ src/main.c Thu Nov 27 01:27:55 2003 +@@ -301,6 +301,12 @@ + */ + fprintf( stderr, "** " ); + display_version( FALSE ); ++ /* prevents from segfaulting */ ++ if ( my.cusers == 0) { ++ fprintf(stderr, "\nERROR: concurrent users is not set or set to 0.\n"); ++ display_help(); ++ exit (EXIT_FAILURE); ++ }; + fprintf( stderr, "** Preparing %d concurrent users for battle.\n", my.cusers ); + fprintf( stderr, "The server is now under siege..." ); + if( my.verbose ){ fprintf( stderr, "\n" ); } diff --git a/benchmarks/siege/files/siege.config.in b/benchmarks/siege/files/siege.config.in new file mode 100644 index 000000000000..9da3df97e82f --- /dev/null +++ b/benchmarks/siege/files/siege.config.in @@ -0,0 +1,27 @@ +#!/bin/sh +# SCRIPT: siege.config +# AUTHOR: Jeffrey Fulmer <jdfulmer@armstrong.com> +# DATE: Mon May 28 11:40:28 EDT 2001 +# SYNOP: This script generates an $HOME/.siegerc +# file from the doc/siegerc.in template. +# Its contents are added to this script by +# configure. The siegerc file template is +# maintained once in $(top_srcdir)/doc. + +rcfile="$HOME/.siegerc" + +if test -f $rcfile; then + echo "siege.config" + echo "usage: siege.config [no arguments]" + echo "----------------------------------" + echo "Resource file already install as $rcfile" + echo "Use your favorite editor to change your configuration by" + echo "editing the values in that file." + echo "" + exit +fi +cp %%DATADIR%%/siegerc ${rcfile} +echo "New configuration template added to $rcfile" +echo "Run siege -C to view the current settings in that file" +exit + |