On today's systems fork() will hardly fail, thus removed the fork retry loops.
[mmh] / uip / mhmail.c
index f9e7fcd..2b8589f 100644 (file)
@@ -173,10 +173,7 @@ main(int argc, char **argv)
                vec[nvec++] = "-queued";
        vec[nvec] = NULL;
 
                vec[nvec++] = "-queued";
        vec[nvec] = NULL;
 
-       for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
-               sleep(5);
-
-       if (child_id == NOTOK) {
+       if ((child_id = fork()) == NOTOK) {
                /* report failure and then send it */
                adios(NULL, "unable to fork");
        } else if (child_id) {
                /* report failure and then send it */
                adios(NULL, "unable to fork");
        } else if (child_id) {