$OpenBSD: patch-src_xgselect_c,v 1.1 2012/03/29 18:07:27 ajacoutot Exp $ http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10631 --- src/xgselect.c.orig Wed Jan 11 13:35:01 2012 +++ src/xgselect.c Thu Mar 29 20:01:32 2012 @@ -55,6 +55,9 @@ xg_select (max_fds, rfds, wfds, efds, timeout) do { if (n_gfds > gfds_size) { + if (gfds_size == 0) + xgselect_initialize (); + while (n_gfds > gfds_size) gfds_size *= 2; xfree (gfds);