X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhbuildsbr.c;h=efbb8ac30052ff4644fb95aa591246bf06be77e1;hp=069ea85f2f87dc44d815f8ec5b695530edd1f8c4;hb=5fbf37ee68e018998ada61eeab73e035b26834b6;hpb=75a3bc56e890a9ca5e25f194acbb574e942de5c5 diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 069ea85..efbb8ac 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -1017,7 +1017,7 @@ compose_content(CT ct) default: if (!ce->ce_file) { pid_t child_id; - int i, xstdout, len, buflen; + int xstdout, len, buflen; char *bp, **ap, *cp; char *vec[4], buffer[BUFSIZ]; FILE *out; @@ -1119,9 +1119,7 @@ raw: if ((out = fopen(ce->ce_file, "w")) == NULL) adios(ce->ce_file, "unable to open for writing"); - 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 fork"); /* NOTREACHED */