--- rdisc.c.orig 2008-09-15 05:22:00.000000000 +0000 +++ rdisc.c 2008-09-15 05:22:43.000000000 +0000 @@ -247,7 +247,7 @@ if ((pid=fork()) != 0) exit(0); - for (t = 0; t < OPEN_MAX; t++) + for (t = 0; t < sysconf(_SC_OPEN_MAX); t++) if (t != s) close(t);