diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2007-11-05 00:04:21 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2007-11-05 00:04:21 +0000 |
commit | a2b986fa722f9860a6c56bb5cc724b7e2937d1b7 (patch) | |
tree | ae6d46e2ddda2d02221479b71fbe8a44dd728c34 /contrib/sendmail/src/main.c | |
parent | f4998c8d83fc6b77320e4da32d3d75730971e3d4 (diff) | |
download | FreeBSD-src-a2b986fa722f9860a6c56bb5cc724b7e2937d1b7.zip FreeBSD-src-a2b986fa722f9860a6c56bb5cc724b7e2937d1b7.tar.gz |
Import sendmail 8.14.2
Diffstat (limited to 'contrib/sendmail/src/main.c')
-rw-r--r-- | contrib/sendmail/src/main.c | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/contrib/sendmail/src/main.c b/contrib/sendmail/src/main.c index c11de46..8680add 100644 --- a/contrib/sendmail/src/main.c +++ b/contrib/sendmail/src/main.c @@ -26,7 +26,7 @@ SM_UNUSED(static char copyright[]) = The Regents of the University of California. All rights reserved.\n"; #endif /* ! lint */ -SM_RCSID("@(#)$Id: main.c,v 8.962 2006/12/19 19:47:37 ca Exp $") +SM_RCSID("@(#)$Id: main.c,v 8.963 2007/06/29 20:07:37 ca Exp $") #if NETINET || NETINET6 @@ -2362,7 +2362,33 @@ main(argc, argv, envp) if (QueueIntvl > 0) { - (void) runqueue(true, false, queuepersistent, true); +#if _FFR_RUNPQG + if (qgrp != NOQGRP) + { + int rwgflags = RWG_NONE; + + /* + ** To run a specific queue group mark it to + ** be run, select the work group it's in and + ** increment the work counter. + */ + + for (i = 0; i < NumQueue && Queue[i] != NULL; + i++) + Queue[i]->qg_nextrun = (time_t) -1; + Queue[qgrp]->qg_nextrun = 0; + if (Verbose) + rwgflags |= RWG_VERBOSE; + if (queuepersistent) + rwgflags |= RWG_PERSISTENT; + rwgflags |= RWG_FORCE; + (void) run_work_group(Queue[qgrp]->qg_wgrp, + rwgflags); + } + else +#endif /* _FFR_RUNPQG */ + (void) runqueue(true, false, queuepersistent, + true); /* ** If queuepersistent but not in daemon mode then |