0011-get-out-of-the-endless-while-loop-when-bind-failed.patch 817 B

1234567891011121314151617181920212223242526
  1. From cefde9e8caac8ad05409265dcaade63843f2fc71 Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@uclibc-ng.org>
  3. Date: Sun, 24 Aug 2014 21:37:48 +0200
  4. Subject: [PATCH 11/11] get out of the endless while loop, when bind failed
  5. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
  6. ---
  7. test/nptl/tst-cancel4.c | 2 ++
  8. 1 file changed, 2 insertions(+)
  9. diff --git a/test/nptl/tst-cancel4.c b/test/nptl/tst-cancel4.c
  10. index 53abf83..4ba4045 100644
  11. --- a/test/nptl/tst-cancel4.c
  12. +++ b/test/nptl/tst-cancel4.c
  13. @@ -1015,6 +1015,8 @@ tf_accept (void *arg)
  14. if (++tries > 10)
  15. {
  16. printf ("%s: too many unsuccessful bind calls\n", __FUNCTION__);
  17. + /* prevent endless loop, when bind fails forever */
  18. + exit (1);
  19. }
  20. strcpy (sun.sun_path, "/tmp/tst-cancel4-socket-1-XXXXXX");
  21. --
  22. 1.8.5.2 (Apple Git-48)