Testsuite: delays for debug output ordering (again)
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 16 Nov 2017 18:31:23 +0000 (18:31 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Thu, 16 Nov 2017 18:31:23 +0000 (18:31 +0000)
src/src/deliver.c

index a7f561c9c355fe6b4cb20d0b05b251c4b3d14aa2..de552f4cc0931642af59e2c227b878aa51111714 100644 (file)
@@ -8551,8 +8551,11 @@ if (cutthrough.fd >= 0 && cutthrough.callout_hold_only)
       goto fail;
 
     else if (pid == 0)         /* child: fork again to totally disconnect */
+      {
+      if (running_in_test_harness) millisleep(100); /* let parent debug out */
       /* does not return */
       smtp_proxy_tls(big_buffer, big_buffer_size, pfd, 5*60);
+      }
 
     DEBUG(D_transport) debug_printf("proxy-proc inter-pid %d\n", pid);
     close(pfd[0]);