Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2006 09:07:04 +0200 (CEST)
From:      Thomas Quinot <thomas@cuivre.fr.eu.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/102176: [PATCH] rpc.lockd: grace period is always 10 seconds
Message-ID:  <20060817070704.8CD495C47F@melamine.cuivre.fr.eu.org>
Resent-Message-ID: <200608170710.k7H7AFKU072759@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         102176
>Category:       bin
>Synopsis:       [PATCH] rpc.lockd: grace period is always 10 seconds
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 17 07:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Quinot
>Release:        FreeBSD 6.1-RC i386
>Organization:
>Environment:
System: FreeBSD melamine.cuivre.fr.eu.org 6.1-RC FreeBSD 6.1-RC #0: Thu May 4 13:21:21 CEST 2006 thomas@melamine.cuivre.fr.eu.org:/space/build/obj/space/build/src/RELENG_6/sys/MELAMINE i386


	
>Description:
	From code reading, it looks like the default grace period of 30 seconds
	and the user-specified grace period from the -g command line switch are
	not taken into account; instead, a fixed grace period of 10 seconds is
	implemented.

>How-To-Repeat:
	
>Fix:

	The following patch is the obvious fix; however it has not been tested yet.

Index: lockd.c
===================================================================
RCS file: /space/mirror/ncvs/src/usr.sbin/rpc.lockd/lockd.c,v
retrieving revision 1.18
diff -u -r1.18 lockd.c
--- lockd.c	16 Jul 2004 19:30:59 -0000	1.18
+++ lockd.c	17 Aug 2006 07:02:13 -0000
@@ -203,7 +203,7 @@
 		exit(1);
 	}
 	grace_expired = 0;
-	alarm(10);
+	alarm(grace_period);
 
 	init_nsm();
 


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060817070704.8CD495C47F>