bin/102176: [PATCH] rpc.lockd: grace period is always 10 seconds
Thomas Quinot
thomas at cuivre.fr.eu.org
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
>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 at 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:
More information about the freebsd-bugs
mailing list