summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2006-08-23 15:59:43 +0000
committerthomas <thomas@FreeBSD.org>2006-08-23 15:59:43 +0000
commit7b372bea7e47e8112022b8594f8120e37f7ffd05 (patch)
tree3671b0bfd2cfe91c26732aa4bd46bca798eed63c /usr.sbin/rpc.lockd
parentae7c9ee9d8985a7fa196f259f69cb31993e51355 (diff)
downloadFreeBSD-src-7b372bea7e47e8112022b8594f8120e37f7ffd05.zip
FreeBSD-src-7b372bea7e47e8112022b8594f8120e37f7ffd05.tar.gz
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
Diffstat (limited to 'usr.sbin/rpc.lockd')
-rw-r--r--usr.sbin/rpc.lockd/lockd.c2
1 files changed, 1 insertions, 1 deletions
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();
OpenPOWER on IntegriCloud