summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/nptl/tst-cancel4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/nptl/tst-cancel4.c b/test/nptl/tst-cancel4.c
index 53abf83ee..4ba40450e 100644
--- a/test/nptl/tst-cancel4.c
+++ b/test/nptl/tst-cancel4.c
@@ -1015,6 +1015,8 @@ tf_accept (void *arg)
if (++tries > 10)
{
printf ("%s: too many unsuccessful bind calls\n", __FUNCTION__);
+ /* prevent endless loop, when bind fails forever */
+ exit (1);
}
strcpy (sun.sun_path, "/tmp/tst-cancel4-socket-1-XXXXXX");