git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check ARGV before subscripting it
[exim.git]
/
src
/
src
/
deliver.c
diff --git
a/src/src/deliver.c
b/src/src/deliver.c
index 3180272a3abc8ab3cd15dac64ebd2db97b7ecc83..de552f4cc0931642af59e2c227b878aa51111714 100644
(file)
--- a/
src/src/deliver.c
+++ b/
src/src/deliver.c
@@
-2,7
+2,7
@@
* Exim - an Internet mail transport agent *
*************************************************/
* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) University of Cambridge 1995 - 201
6
*/
+/* Copyright (c) University of Cambridge 1995 - 201
7
*/
/* See the file NOTICE for conditions of use and distribution. */
/* The main code for delivering a message. */
/* See the file NOTICE for conditions of use and distribution. */
/* The main code for delivering a message. */
@@
-8551,8
+8551,11
@@
if (cutthrough.fd >= 0 && cutthrough.callout_hold_only)
goto fail;
else if (pid == 0) /* child: fork again to totally disconnect */
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);
/* 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]);
DEBUG(D_transport) debug_printf("proxy-proc inter-pid %d\n", pid);
close(pfd[0]);