bin/102176: [PATCH] rpc.lockd: grace period is always 10 seconds

Thomas Quinot thomas at
Thu Aug 17 07:10:16 UTC 2006

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 17 07:10:15 GMT 2006
>Originator:     Thomas Quinot
>Release:        FreeBSD 6.1-RC i386
System: FreeBSD 6.1-RC FreeBSD 6.1-RC #0: Thu May 4 13:21:21 CEST 2006 thomas at i386

	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


	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 @@
 	grace_expired = 0;
-	alarm(10);
+	alarm(grace_period);


More information about the freebsd-bugs mailing list