Check GETTY_SPACING against the monotonic clock.
authorcheloha <cheloha@openbsd.org>
Wed, 31 Jan 2018 15:57:44 +0000 (15:57 +0000)
committercheloha <cheloha@openbsd.org>
Wed, 31 Jan 2018 15:57:44 +0000 (15:57 +0000)
commiteb10f49cb5004439aeb1da4de58d46ffb6569ecf
tree115bed79fd2f7c714f4061ee54f2730671b397e1
parent0ed49adf0f8895b270a1cc653803b41f32597db6
Check GETTY_SPACING against the monotonic clock.

Ensures that we can use the check if the system clock is set backwards.

While here, move time retrieval into the child process in start_getty(),
and only get the time if se_started has been set.

ok millert@ tb@
sbin/init/init.c