From 35a64c9f6f69bd4234866dedfa9b8d5f6b33ef1b Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Wed, 23 Aug 2006 15:59:43 +0000 Subject: [PATCH] Set alarm timer for grace period from the grace_period variable, instead of hard-coding a value of 10 seconds. Command line flag -g is thus now correctly taken into account. PR: bin/102176 MFC after: 1 week --- usr.sbin/rpc.lockd/lockd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/rpc.lockd/lockd.c b/usr.sbin/rpc.lockd/lockd.c index 440b1a5fdd6d..20fec254d859 100644 --- a/usr.sbin/rpc.lockd/lockd.c +++ b/usr.sbin/rpc.lockd/lockd.c @@ -203,7 +203,7 @@ main(argc, argv) exit(1); } grace_expired = 0; - alarm(10); + alarm(grace_period); init_nsm();