ports/77783: [Maintainer] www/gatling: fix 'gatling -h' not returning correctly

Thomas-Martin Seck tmseck at netcologne.de
Sun Feb 20 16:20:21 UTC 2005


>Number:         77783
>Category:       ports
>Synopsis:       [Maintainer] www/gatling: fix 'gatling -h' not returning correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 20 16:20:20 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Thomas-Martin Seck
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
a private site in Germany
>Environment:
FreeBSD ports collection as of Feb 20, 2005.

	
>Description:
Integrate a patch to stop gatling from spinning endlessly when called
with the -h option. The patch was optained from gatling CVS.

Note to committer:
please 'cvs add' files/patch-gatling.c
	
>How-To-Repeat:
Install gatling, call "gatling -h", then start top(1) and look for the
gatling process.
	
>Fix:
Apply this patch:

Index: files/patch-gatling.c
===================================================================
--- files/patch-gatling.c	(.../www/gatling)	(revision 0)
+++ files/patch-gatling.c	(.../local/gatling)	(revision 416)
@@ -0,0 +1,11 @@
+--- gatling.c.orig	Mon Jan 31 17:14:45 2005
++++ gatling.c	Sun Feb 20 17:02:12 2005
+@@ -3088,7 +3088,7 @@ void forkslave(int fd,buffer* in) {
+     }
+   }
+ error:
+-  write(fd,&code,4);
++  if (write(fd,&code,4)!=4) exit(0);
+   code=strlen(msg);
+   write(fd,&code,4);
+   {
Index: Makefile
===================================================================
--- Makefile	(.../www/gatling)	(revision 416)
+++ Makefile	(.../local/gatling)	(revision 416)
@@ -7,6 +7,7 @@
 
 PORTNAME=	gatling
 PORTVERSION=	0.6
+PORTREVISION=	1
 CATEGORIES=	www benchmarks ftp ipv6
 MASTER_SITES=	http://dl.fefe.de/
 
	


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list