aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/siege/files/patch-src::main.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-12-04 10:22:32 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-12-04 10:22:32 +0000
commit4057dd908a5142e0f6f89e47e67c624f3a313c68 (patch)
tree58d906d0be8ca89015d0601908486593961901af /benchmarks/siege/files/patch-src::main.c
parentbad129d485317db7f4348c8d84128ffd652eddb1 (diff)
downloadports-4057dd908a5142e0f6f89e47e67c624f3a313c68.tar.gz
ports-4057dd908a5142e0f6f89e47e67c624f3a313c68.zip
Notes
Diffstat (limited to 'benchmarks/siege/files/patch-src::main.c')
-rw-r--r--benchmarks/siege/files/patch-src::main.c15
1 files changed, 15 insertions, 0 deletions
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" ); }