I truly believe that vfork is wrong. Forking should not be too slow for us.
if ((hook = context_find(hook_name)) == NULL)
return (OK);
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case -1:
status = NOTOK;
advise(NULL, "external database may be out-of-date.");
fflush(stdout);
vec[0] = mhbasename(rmmproc);
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case -1:
advise("fork", "unable to");
return -1;
** directories like the above code can.
** -- Dan Harkless <dan-nmh@dilvish.speed.net>
*/
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case -1:
advise("fork", "unable to");
return 0;
context_save(); /* save the context file */
fflush(stdout);
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case -1:
advise("fork", "unable to");
return -1;
if (!strcmp(mhbasename(lproc), "mhl"))
lproc = mhlproc;
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case -1:
/* fork error */
advise("fork", "unable to");
if ((out = fopen(ce->ce_file, "w")) == NULL)
adios(ce->ce_file, "unable to open for writing");
- 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:
if (pipe(pd) == NOTOK)
adios("pipe", "unable to");
- switch (m_pid = vfork()) {
+ switch (m_pid = fork()) {
case NOTOK:
adios("fork", "unable to");
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:
vec[vecp++] = e->eb_body;
vec[vecp] = NULL;
- 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:
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) {
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:
#endif
unlink(tmpfil);
- if ((child_id = vfork()) == NOTOK) {
+ if ((child_id = fork()) == NOTOK) {
/* fork error */
close(fd);
return header_fd();
rewind(in);
lseek(fileno(in), (off_t) 0, SEEK_SET);
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case NOTOK:
adios("fork", "unable to");
done(1);
vec[vecp] = NULL;
- 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) {
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:
} 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);
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:
context_save(); /* save the context file */
fflush(stdout);
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case NOTOK:
advise("fork", "unable to");
status = NOTOK;
context_save(); /* save the context file */
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: