From vangyzen@hiro.vangyzen.net  Thu Sep 28 17:57:50 2000
Return-Path: <vangyzen@hiro.vangyzen.net>
Received: from enzo.vangyzen.net (GRN-TNT1-pool2-60.coastalnet.com [216.10.167.60])
	by hub.freebsd.org (Postfix) with ESMTP id 71CAC37B422
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Sep 2000 17:57:48 -0700 (PDT)
Received: from hiro.vangyzen.net (hiro.vangyzen.net [192.168.1.3])
	by enzo.vangyzen.net (8.11.0/8.9.3) with ESMTP id e8T0vjh00635
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Sep 2000 20:57:46 -0400 (EDT)
	(envelope-from vangyzen@hiro.vangyzen.net)
Received: (from vangyzen@localhost)
	by hiro.vangyzen.net (8.11.0/8.9.3) id e8T0vqQ05242;
	Thu, 28 Sep 2000 20:57:52 -0400 (EDT)
	(envelope-from vangyzen)
Message-Id: <200009290057.e8T0vqQ05242@hiro.vangyzen.net>
Date: Thu, 28 Sep 2000 20:57:52 -0400 (EDT)
From: eric@vangyzen.net
Sender: vangyzen@hiro.vangyzen.net
Reply-To: eric@vangyzen.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: worms(6) ignores -d option
X-Send-Pr-Version: 3.2

>Number:         21634
>Category:       misc
>Synopsis:       worms(6) ignores -d option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    alex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 28 18:00:04 PDT 2000
>Closed-Date:    Mon Dec 4 02:40:00 PST 2000
>Last-Modified:  Mon Dec 04 02:40:55 PST 2000
>Originator:     Eric S. Van Gyzen
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
>Environment:

FreeBSD 4.1.1-STABLE i386
XFree86 3.3.6 xterm

>Description:

worms(6) does nothing productive with the -d argument.

>How-To-Repeat:

Compare the animation speed of the following:
% /usr/games/worms
% /usr/games/worms -d 1000
Note the lack of a difference.

>Fix:

Apply the following patch:

--- src/games/worms/worms.c.orig	Thu Sep 28 20:53:21 2000
+++ src/games/worms/worms.c	Thu Sep 28 20:53:54 2000
@@ -328,6 +328,8 @@
 				flavor[n % sizeof(flavor)]);
 			ref[w->ypos[h] = y][w->xpos[h] = x]++;
 		}
+		if (usleep(delay))
+			onsig(SIGTERM);
 	}
 }
 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->alex 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sun Oct 15 14:24:06 PDT 2000 
Responsible-Changed-Why:  
Commit-cadidate which survived a buildworld and works 
beautiful. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21634 
State-Changed-From-To: open->suspended 
State-Changed-By: alex 
State-Changed-When: Sat Oct 28 00:38:01 PDT 2000 
State-Changed-Why:  
Committed to HEAD. 
Leaving this PR open as a reminder to MFC. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21634 
State-Changed-From-To: suspended->closed 
State-Changed-By: alex 
State-Changed-When: Mon Dec 4 02:40:00 PST 2000 
State-Changed-Why:  
Fixed in RELENG_3 and RELENG_4, too. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21634 
>Unformatted:
