Merge branch 'debug_fork'
[exim.git] / src / src / transports / autoreply.c
index e75349ed9b7eb9ca928d3226f548bb16b94ea6bc..90a5aa4be6f3aa58d6d082247e9ea4a4bda06f48 100644 (file)
@@ -567,12 +567,10 @@ if (file)
 
 /* Make a subprocess to send the message */
 
-pid = child_open_exim(&fd);
-
-/* Creation of child failed; defer this delivery. */
-
-if (pid < 0)
+if ((pid = child_open_exim(&fd, US"autoreply")) < 0)
   {
+  /* Creation of child failed; defer this delivery. */
+
   addr->transport_return = DEFER;
   addr->basic_errno = errno;
   addr->message = string_sprintf("Failed to create child process to send "