Prefork: Use poll() to avoid limitations of select() (Issue #2373)