X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhmail.c;h=2b8589f5330c90c6bff6367d94138d60d4a5b7cc;hb=4c0c2fb7766546cb466f05f76e5febd5d8f682e0;hp=a013ecb8361811898eecb0a30031819dacc27fb1;hpb=5b792c4424571f05bc2008e3109797d18d7d00d1;p=mmh diff --git a/uip/mhmail.c b/uip/mhmail.c index a013ecb..2b8589f 100644 --- a/uip/mhmail.c +++ b/uip/mhmail.c @@ -130,7 +130,7 @@ main(int argc, char **argv) if (tolist == NULL) adios(NULL, "usage: %s addrs ... [switches]", invo_name); - tfile = m_mktemp2(NULL, invo_name, NULL, &out); + tfile = m_mktemp2("/tmp/", invo_name, NULL, &out); if (tfile == NULL) adios("mhmail", "unable to create temporary file"); chmod(tfile, 0600); @@ -173,10 +173,7 @@ main(int argc, char **argv) vec[nvec++] = "-queued"; vec[nvec] = NULL; - for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++) - sleep(5); - - if (child_id == NOTOK) { + if ((child_id = fork()) == NOTOK) { /* report failure and then send it */ adios(NULL, "unable to fork"); } else if (child_id) {