summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-11-15 18:56:21 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-11-15 18:56:21 +0000
commit626810b928939e375f83b0f234a854d69339227c (patch)
tree8765f3e14f924739c1a448a421651f271639485e /src
parent176cf342af83cab469cb3bbd24221c88c8e00bf6 (diff)
Testsuite: delays for debug output ordering
OpenBSD seems to prioritize the child of a fork; Linux & FreeBSD the parent
Diffstat (limited to 'src')
-rw-r--r--src/src/transports/smtp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index a501e6ed7..ef9309c47 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -2607,6 +2607,7 @@ if ((rc = fork()))
_exit(rc < 0 ? EXIT_FAILURE : EXIT_SUCCESS);
}
+if (running_in_test_harness) millisleep(100); /* let parent debug out */
set_process_info("proxying TLS connection for continued transport");
FD_ZERO(&rfds);
FD_SET(tls_out.active, &rfds);
@@ -3508,9 +3509,12 @@ propagate it from the initial
{
int pid = fork();
if (pid == 0) /* child; fork again to disconnect totally */
+ {
+ if (running_in_test_harness) millisleep(100); /* let parent debug out */
/* does not return */
smtp_proxy_tls(sx.buffer, sizeof(sx.buffer), pfd,
sx.ob->command_timeout);
+ }
if (pid > 0) /* parent */
{