Hello,
probably mail(1) should always wait for sendmail(8) termination in order to
prevent any possible sendmail error messages from being intermixed with
subsequent terminal output.
---
usr.bin/mail/send.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/usr.bin/mail/send.c b/usr.bin/mail/send.c
index 9582675f9b8..0d7f5570e0f 100644
--- a/usr.bin/mail/send.c
+++ b/usr.bin/mail/send.c
@@ -425,10 +425,7 @@ mail1(struct header *hp, int printheaders)
_exit(1);
}
free(envfrom);
- if (value("verbose") != NULL)
- (void)wait_child(pid);
- else
- free_child(pid);
+ (void)wait_child(pid);
out:
(void)Fclose(mtf);
}
--
2.44.1