projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history]
/
usr.sbin
/
sendmail
/
src
/
queue.c
diff --git
a/usr.sbin/sendmail/src/queue.c
b/usr.sbin/sendmail/src/queue.c
index
1605701
..
5c4a027
100644
(file)
--- a/
usr.sbin/sendmail/src/queue.c
+++ b/
usr.sbin/sendmail/src/queue.c
@@
-36,9
+36,9
@@
#ifndef lint
#ifdef QUEUE
#ifndef lint
#ifdef QUEUE
-static char sccsid[] = "@(#)queue.c 8.2
4 (Berkeley) 10/23
/93 (with queueing)";
+static char sccsid[] = "@(#)queue.c 8.2
7 (Berkeley) 10/29
/93 (with queueing)";
#else
#else
-static char sccsid[] = "@(#)queue.c 8.2
4 (Berkeley) 10/23
/93 (without queueing)";
+static char sccsid[] = "@(#)queue.c 8.2
7 (Berkeley) 10/29
/93 (without queueing)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
@@
-249,7
+249,7
@@
queueup(e, queueall, announce)
e->e_to = q->q_paddr;
message("queued");
if (LogLevel > 8)
e->e_to = q->q_paddr;
message("queued");
if (LogLevel > 8)
- logdelivery(NULL, NULL, "queued", e);
+ logdelivery(NULL, NULL, "queued",
NULL,
e);
e->e_to = NULL;
}
if (tTd(40, 1))
e->e_to = NULL;
}
if (tTd(40, 1))
@@
-332,9
+332,7
@@
queueup(e, queueall, announce)
** Clean up.
*/
** Clean up.
*/
- fflush(tfp);
- fsync(fileno(tfp));
- if (ferror(tfp))
+ if (fflush(tfp) < 0 || fsync(fileno(tfp)) < 0 || ferror(tfp))
{
if (newid)
syserr("!552 Error writing control file %s", tf);
{
if (newid)
syserr("!552 Error writing control file %s", tf);
@@
-874,7
+872,7
@@
dowork(id, forkflag, requeueflag, e)
e->e_flags |= EF_QUEUERUN|EF_GLOBALERRS;
e->e_errormode = EM_MAIL;
e->e_id = id;
e->e_flags |= EF_QUEUERUN|EF_GLOBALERRS;
e->e_errormode = EM_MAIL;
e->e_id = id;
- GrabTo = FALSE;
+ GrabTo =
UseErrorsTo =
FALSE;
if (forkflag)
{
disconnect(1, e);
if (forkflag)
{
disconnect(1, e);