From 4e1fde53a4b1133c5efee3ac73e598ee36b9c1ba Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Wed, 24 Nov 2004 16:14:50 +0000 Subject: [PATCH] Testing tweak to improve repeatability. --- doc/doc-txt/ChangeLog | 5 ++++- src/src/queue.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index d3a98b6ba..d223383ba 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.38 2004/11/24 15:43:36 ph10 Exp $ +$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.39 2004/11/24 16:14:50 ph10 Exp $ Change log file for Exim from version 4.21 ------------------------------------------- @@ -169,6 +169,9 @@ Exim version 4.44 39. Added log_selector=+queue_time_overall. +40. When running the queue in the test harness, wait just a tad after forking a + delivery process, to get repeatability of debugging output. + Exim version 4.43 ----------------- diff --git a/src/src/queue.c b/src/src/queue.c index c3e81a09d..bbced642a 100644 --- a/src/src/queue.c +++ b/src/src/queue.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/queue.c,v 1.2 2004/11/05 14:59:12 ph10 Exp $ */ +/* $Cambridge: exim/src/src/queue.c,v 1.3 2004/11/24 16:14:50 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -615,6 +615,7 @@ for (i = (queue_run_in_order? -1 : 0); if ((pid = fork()) == 0) { int rc; + if (running_in_test_harness) millisleep(100); (void)close(pfd[pipe_read]); rc = deliver_message(f->text, force_delivery, FALSE); _exit(rc == DELIVER_NOT_ATTEMPTED); -- 2.25.1