Use poll() instead of select() in res_timing_pthread to avoid stack corruption.