Date: 20 Feb 2005 16:16:01 -0000 From: Thomas-Martin Seck <tmseck@netcologne.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/77783: [Maintainer] www/gatling: fix 'gatling -h' not returning correctly Message-ID: <20050220161601.27256.qmail@laurel.tmseck.homedns.org> Resent-Message-ID: <200502201620.j1KGKKhR053991@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050220161601.27256.qmail>