labelled-process fork function
[exim.git] / src / src / transports / autoreply.c
index 4b5ef8e1748844934fb948b1e31bdb2399523911..2b487b435a62b66f1f61701bf775f42e44a9520f 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 "