this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix jumpy usec values for kern.boottime

This was causing issues with Homebrew due to Ruby using `_mach_boottime_usec` (indirectly), which repeatedly does `kern.boottime` sysctls until two results match.

+5
+5
src/kernel/emulation/linux/misc/sysctl_kern.c
··· 140 140 sys_gettimeofday(tv, NULL); 141 141 142 142 tv->tv_sec -= info.uptime; 143 + 144 + // we don't want the microseconds to be constantly jumping around 145 + // (that actually causes an infinite loop in `_mach_boottime_usec` in libc) 146 + // but Linux doesn't give us microseconds, so just settle for 0 147 + tv->tv_usec = 0; 143 148 } 144 149 *oldlen = sizeof(*tv); 145 150