s/vfork/fork/
[mmh] / uip / spost.c
index cc163ac..8c55c06 100644 (file)
@@ -431,7 +431,7 @@ main(int argc, char **argv)
 
        if (pushflg && !(watch || verbose)) {
                /* fork to a child to run sendmail */
-               for (i=0; (pid = vfork()) == NOTOK && i < 5; i++)
+               for (i=0; (pid = fork()) == NOTOK && i < 5; i++)
                        sleep(5);
                switch (pid) {
                case NOTOK:
@@ -797,11 +797,11 @@ make_bcc_file(void)
        } else {
                vec[0] = mhbasename(mhlproc);
 
-               for (i = 0; (child_id = vfork()) == NOTOK && i < 5; i++)
+               for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
                        sleep(5);
                switch (child_id) {
                case NOTOK:
-                       adios("vfork", "unable to");
+                       adios("fork", "unable to");
 
                case OK:
                        dup2(fileno(out), 1);
@@ -857,7 +857,7 @@ fcc(char *file, char *folder)
                                folder);
        fflush(stdout);
 
-       for (i = 0; (child_id = vfork()) == NOTOK && i < 5; i++)
+       for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
                sleep(5);
        switch (child_id) {
        case NOTOK: