]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace the use of wall clock time with monotonically increasing
authorXin LI <delphij@FreeBSD.org>
Mon, 4 Jun 2012 18:02:09 +0000 (18:02 +0000)
committerXin LI <delphij@FreeBSD.org>
Mon, 4 Jun 2012 18:02:09 +0000 (18:02 +0000)
commit4f985ef6b9f711bf71474d40f95fa6496781acfa
tree6ea24687d5adc49672fbd6b7bf0a602f3358bbad
parentcec20e143cf395d987df6d39fbdeb950e75248a7
Replace the use of wall clock time with monotonically increasing
clock.  In general, gettimeofday() is not appropriate interface
when accounting for elasped time because it can go backward, in
which case the policy code could errornously consider the limit
as exceeded.

MFC after: 1 week
Reported by: Mahesh Arumugam
Submitted by: Dorr H. Clark via gnn
Sponsored by: Citrix / NetScaler
usr.sbin/inetd/inetd.c
usr.sbin/inetd/inetd.h