Up to [cvs.NetBSD.org] / pkgsrc / mbone / dbeacon
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: pkgsrc-2015Q1
Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 13 20:25:13 2015 UTC (9 years, 3 months ago) by he
Branch: MAIN
CVS Tags: pkgsrc-2015Q2-base,
pkgsrc-2015Q2,
pkgsrc-2015Q1-base,
pkgsrc-2015Q1
Changes since 1.4: +2 -2
lines
Diff to previous 1.4 (colored)
Re-do the get_timestamp() patch to instead of calling times() use gettimeofday() directly. With a 32-bit clock_t and a 100Hz tick, times() will wrap once every 497 days if my math isn't too far off, and this will land us in an assert() in dbeacon and with a core dump. So instead use gettimeofday() and save 2 x getrusage() per earlier times() call. Retain some protection against gettimeofday() failing. Bump PKGREVISION.