14 lines
396 B
Diff
14 lines
396 B
Diff
Index: iputils/rdisc.c
|
|
===================================================================
|
|
--- iputils.orig/rdisc.c 2007-12-12 15:41:01.000000000 +0100
|
|
+++ iputils/rdisc.c 2007-12-12 15:42:15.000000000 +0100
|
|
@@ -246,7 +246,7 @@ void do_fork(void)
|
|
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);
|
|
|