From 7b372bea7e47e8112022b8594f8120e37f7ffd05 Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 23 Aug 2006 15:59:43 +0000 Subject: 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(-) (limited to 'usr.sbin/rpc.lockd') diff --git a/usr.sbin/rpc.lockd/lockd.c b/usr.sbin/rpc.lockd/lockd.c index 440b1a5..20fec25 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(); -- cgit v1.1