]> andersk Git - moira.git/commitdiff
allow up to 10 listen errors before exit
authormar <mar>
Wed, 13 Jun 1990 12:44:14 +0000 (12:44 +0000)
committermar <mar>
Wed, 13 Jun 1990 12:44:14 +0000 (12:44 +0000)
server/mr_main.c

index 0b950667e80b63166f53574f48cec7a28275f558..479c1ae349f39f4469eefbfe549d8b0a8e1ec202 100644 (file)
@@ -213,9 +213,11 @@ main(argc, argv)
                                if (errno == EWOULDBLOCK) {
                                        do_reset_listen();
                                } else {
+                                       static int count = 0;
                                        com_err(whoami, errno,
-                                               " error on listen");
-                                       exit(1);
+                                               " error (%d) on listen", count);
+                                       if (count++ > 10)
+                                         exit(1);
                                }
                        } else if ((status = new_connection()) != 0) {
                                com_err(whoami, errno,
This page took 0.06191 seconds and 5 git commands to generate.