Debug: output type of process as it terminates
[exim.git] / src / src / transports / smtp.c
index 14cfde72aa814dd5284b46d690b537d50b627f30..3b4aea192e04eadc93f5c26007bb62c5adc526dc 100644 (file)
@@ -3510,10 +3510,10 @@ propagate it from the initial
            if ((pid = fork()))
              {
              DEBUG(D_transport) debug_printf("proxy-prox final-pid %d\n", pid);
-             _exit(pid ? EXIT_FAILURE : EXIT_SUCCESS);
+             _exit(pid < 0 ? EXIT_FAILURE : EXIT_SUCCESS);
              }
            smtp_proxy_tls(sx.buffer, sizeof(sx.buffer), pfd[0], sx.ob->command_timeout);
-           exim_exit(0);
+           exim_exit(0, US"TLS proxy");
            }
          }
 #endif