cleanup
This commit is contained in:
parent
c87c064d4a
commit
fe02cd5957
3 changed files with 1 additions and 6 deletions
|
|
@ -327,7 +327,6 @@ threadmain(int argc, char **argv)
|
||||||
fd = sendmail(to, cc, &pid, Fflag ? argv[0] : nil);
|
fd = sendmail(to, cc, &pid, Fflag ? argv[0] : nil);
|
||||||
if(fd < 0)
|
if(fd < 0)
|
||||||
sysfatal("execing sendmail: %r\n:");
|
sysfatal("execing sendmail: %r\n:");
|
||||||
fprint(2, "sendmail fd %d\n", fd);
|
|
||||||
if(xflag || lbflag || dflag){
|
if(xflag || lbflag || dflag){
|
||||||
close(fd);
|
close(fd);
|
||||||
threadexitsall(waitforsubprocs());
|
threadexitsall(waitforsubprocs());
|
||||||
|
|
@ -1106,10 +1105,7 @@ sendmail(Addr *to, Addr *cc, int *pid, char *rcvr)
|
||||||
/* threadspawn closed pfd[0] (== xfd[0]) */
|
/* threadspawn closed pfd[0] (== xfd[0]) */
|
||||||
sfd = pfd[1];
|
sfd = pfd[1];
|
||||||
|
|
||||||
fprint(2, "exec'ed %s\n", x);
|
|
||||||
|
|
||||||
if(rcvr != nil){
|
if(rcvr != nil){
|
||||||
fprint(2, "rcvr\n");
|
|
||||||
if(pipe(pfd) < 0)
|
if(pipe(pfd) < 0)
|
||||||
fatal("pipe: %r");
|
fatal("pipe: %r");
|
||||||
seek(fd, 0, 2);
|
seek(fd, 0, 2);
|
||||||
|
|
|
||||||
|
|
@ -768,7 +768,6 @@ boxgen(int i, Dir *d, void *aux)
|
||||||
Box *box;
|
Box *box;
|
||||||
|
|
||||||
box = aux;
|
box = aux;
|
||||||
if(i==0) fprint(2, "boxgen %s %d nsub=%d nmsg=%d\n", box->name, i, box->nsub, box->nmsg);
|
|
||||||
if(i == 0)
|
if(i == 0)
|
||||||
return filldir(d, Qboxctl, box, nil, nil);
|
return filldir(d, Qboxctl, box, nil, nil);
|
||||||
i--;
|
i--;
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ callmx(DS *ds, char *dest, char *domain)
|
||||||
snprint(addr, sizeof(addr), "%s/%s!%s!%s", ds->netdir, ds->proto,
|
snprint(addr, sizeof(addr), "%s/%s!%s!%s", ds->netdir, ds->proto,
|
||||||
mx[i].host, ds->service);
|
mx[i].host, ds->service);
|
||||||
if(debug)
|
if(debug)
|
||||||
fprint(2, "mxdial trying %s\n", addr);
|
fprint(2, "mxdial trying %s (%d)\n", addr, i);
|
||||||
atnotify(timeout, 1);
|
atnotify(timeout, 1);
|
||||||
alarm(10*1000);
|
alarm(10*1000);
|
||||||
fd = dial(addr, 0, 0, 0);
|
fd = dial(addr, 0, 0, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue