HomeFreeBSD

Bad timespec_subtract() calculations produce negative tv_nsec on i386

Description

Bad timespec_subtract() calculations produce negative tv_nsec on i386
which cause EINVAL returned from nanosleep() which cause loop in
cron_sleep() and making all cron jobs to start about 30 seconds earlier
(which cause f.e. logfiles rotation by newsyslog delayed by 1 hour).

Use simple and proved calculations from kernel's timespecsub() instead.

MFC after: 3 days

Details

Provenance
acheAuthored on Jan 25 2014, 2:16 AM
Parents
rGb3f2918a2595: Temporarily turn off the services.db generation during distributeworld.
Branches
Unknown
Tags
Unknown

Event Timeline