johnae / spook

Lightweight programmable evented utility based on LuaJIT and ljsyscall
Other
35 stars 0 forks source link

Try to avoid failures on BSD on system suspend. #23

Closed johnae closed 7 years ago

johnae commented 7 years ago

I actually am not sure if kqueue can return just "nil" when system sleeps but it doesn't hurt to guard against that as done on Linux.

Also slight cleanup in BSD event loop.