]> diplodocus.org Git - nmh/blobdiff - uip/mhbuildsbr.c
mhstoresbr.c: Flip if-condition so return moves from else block.
[nmh] / uip / mhbuildsbr.c
index 7c0e79412f507c777a20b45616d0817c3a8407f6..9c5bd92a7cec676dca45f76e9f2d62c7c7d5a754 100644 (file)
@@ -1221,7 +1221,7 @@ compose_content (CT ct, int verbose)
     default:
        if (!ce->ce_file) {
            pid_t child_id;
-           int i, xstdout, len, buflen;
+           int xstdout, len, buflen;
            char *bp, *cp;
            char *vec[4], buffer[BUFSIZ];
            FILE *out;
@@ -1321,8 +1321,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);
+           child_id = fork();
            switch (child_id) {
            case NOTOK:
                adios ("fork", "unable to fork");