mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
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);
|
||||
if(fd < 0)
|
||||
sysfatal("execing sendmail: %r\n:");
|
||||
fprint(2, "sendmail fd %d\n", fd);
|
||||
if(xflag || lbflag || dflag){
|
||||
close(fd);
|
||||
threadexitsall(waitforsubprocs());
|
||||
|
@ -1106,10 +1105,7 @@ sendmail(Addr *to, Addr *cc, int *pid, char *rcvr)
|
|||
/* threadspawn closed pfd[0] (== xfd[0]) */
|
||||
sfd = pfd[1];
|
||||
|
||||
fprint(2, "exec'ed %s\n", x);
|
||||
|
||||
if(rcvr != nil){
|
||||
fprint(2, "rcvr\n");
|
||||
if(pipe(pfd) < 0)
|
||||
fatal("pipe: %r");
|
||||
seek(fd, 0, 2);
|
||||
|
|
|
@ -768,7 +768,6 @@ boxgen(int i, Dir *d, void *aux)
|
|||
Box *box;
|
||||
|
||||
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)
|
||||
return filldir(d, Qboxctl, box, nil, nil);
|
||||
i--;
|
||||
|
|
|
@ -103,7 +103,7 @@ callmx(DS *ds, char *dest, char *domain)
|
|||
snprint(addr, sizeof(addr), "%s/%s!%s!%s", ds->netdir, ds->proto,
|
||||
mx[i].host, ds->service);
|
||||
if(debug)
|
||||
fprint(2, "mxdial trying %s\n", addr);
|
||||
fprint(2, "mxdial trying %s (%d)\n", addr, i);
|
||||
atnotify(timeout, 1);
|
||||
alarm(10*1000);
|
||||
fd = dial(addr, 0, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue