X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhbuildsbr.c;h=efbb8ac30052ff4644fb95aa591246bf06be77e1;hp=4358606269a3e54337d632ed5e1e840f0ee100bd;hb=5fbf37ee68e018998ada61eeab73e035b26834b6;hpb=9f9bfa91d88b3ca4cd9206c1f2b17c6d13ebcaba diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 4358606..efbb8ac 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -1018,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; @@ -1120,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 */