summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-11-01 01:45:53 +0100
committerThomas Schwinge <thomas@codesourcery.com>2012-11-01 01:45:53 +0100
commitcefc074b32d1eed87b2b96c8943d7f1864a5bb15 (patch)
tree1f43da63f9bae90772538a6c5b051e34983a22e7 /hurd
parent0ce6f3added7475bfd0f2f551c6c97baccde6da5 (diff)
parent343dc156c34702751b3cc63736caa0649c59421a (diff)
Merge branch 'baseline' into refs/top-bases/tschwinge/Roger_Whittaker
Diffstat (limited to 'hurd')
-rw-r--r--hurd/lookup-retry.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c
index 4fa2a2199c..c95ca0f64e 100644
--- a/hurd/lookup-retry.c
+++ b/hurd/lookup-retry.c
@@ -24,6 +24,7 @@
#include <fcntl.h>
#include <string.h>
#include <_itoa.h>
+#include <eloop-threshold.h>
/* Translate the error from dir_lookup into the error the user sees. */
static inline error_t
@@ -103,7 +104,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
/* Fall through. */
case FS_RETRY_NORMAL:
- if (nloops++ >= SYMLOOP_MAX)
+ if (nloops++ >= __eloop_threshold ())
{
__mach_port_deallocate (__mach_task_self (), *result);
return ELOOP;
@@ -180,7 +181,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
dirport = INIT_PORT_CRDIR;
if (*result != MACH_PORT_NULL)
__mach_port_deallocate (__mach_task_self (), *result);
- if (nloops++ >= SYMLOOP_MAX)
+ if (nloops++ >= __eloop_threshold ())
return ELOOP;
file_name = &retryname[1];
break;