X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhparse.c;h=b3b07e48cd859baa03b1ed65f875b1606470de26;hp=86c16a9ae71518d03c12173a82a2537384312b1b;hb=5fbf37ee68e018998ada61eeab73e035b26834b6;hpb=75a3bc56e890a9ca5e25f194acbb574e942de5c5 diff --git a/uip/mhparse.c b/uip/mhparse.c index 86c16a9..b3b07e4 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -2472,7 +2472,7 @@ openFTP(CT ct, char **file) CE ce; static char *username = NULL; static char *password = NULL; - int child_id, i, vecp; + int child_id, vecp; char *vec[9]; e = ct->c_ctexbody; @@ -2598,9 +2598,7 @@ openFTP(CT ct, char **file) fflush(stdout); - for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++) - sleep(5); - switch (child_id) { + switch (child_id = fork()) { case NOTOK: adios("fork", "unable to"); /* NOTREACHED */ @@ -2674,7 +2672,7 @@ InitMail(CT ct) static int openMail(CT ct, char **file) { - int child_id, fd, i, vecp; + int child_id, fd, vecp; int len, buflen; char *bp, buffer[BUFSIZ], *vec[7]; struct exbody *e = ct->c_ctexbody; @@ -2734,9 +2732,7 @@ openMail(CT ct, char **file) vec[vecp++] = e->eb_body; vec[vecp] = NULL; - for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++) - sleep(5); - switch (child_id) { + switch (child_id = fork()) { case NOTOK: advise("fork", "unable to"); return NOTOK;