Fredrik Lindberg <fli+freebsd-current at shapeshifter.se> writes: > I introduced powerd to pthreads so this is most likely my fault. There is no reason to use threads in powerd. Simply merge the devd_read() loop into your main loop, using select() with a timeout instead of usleep(). -- Dag-Erling Smørgrav - des at des.no