X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/5fcc791a74a6f6933b3fb03f36e9ea3553152cf7..1e1ddfac79fbcd052f199500a6493c7f79cb8462:/src/src/transports/autoreply.c diff --git a/src/src/transports/autoreply.c b/src/src/transports/autoreply.c index e75349ed9..4c2c08b70 100644 --- a/src/src/transports/autoreply.c +++ b/src/src/transports/autoreply.c @@ -3,6 +3,7 @@ *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2018 */ +/* Copyright (c) The Exim Maintainers 2020 */ /* See the file NOTICE for conditions of use and distribution. */ @@ -567,12 +568,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 "