summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-09-06 17:19:28 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-09-06 17:19:28 +0000
commitf2d38b609fbb1d321a67acb449f79990ef0501b5 (patch)
tree5a0d5cce0af7a9051e1b00f5a35ebaacdc015842 /etc
parent823c84888a0d3df4807501fb984c216863a0e1c6 (diff)
When starting up sendmail in the background, redirect stderr to
/dev/null too. Otherwise, if there is a name resolution problem the rc files may finish before sendmail forks into a daemon and it will complain about EBADF on stderr (since init revoked it). From a discussion between Theo and myself.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index e09544d8e2b..9dc3f441e85 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.152 2000/09/01 06:56:48 aaron Exp $
+# $OpenBSD: rc,v 1.153 2000/09/06 17:19:27 millert Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -434,7 +434,7 @@ fi
# sendmail isn't run. We call sendmail with a full path so that
# SIGHUP works.
if [ "X${sendmail_flags}" != X"NO" -a -s /etc/mail/sendmail.cf ]; then
- echo -n ' sendmail'; ( /usr/sbin/sendmail ${sendmail_flags} >/dev/null & )
+ echo -n ' sendmail'; ( /usr/sbin/sendmail ${sendmail_flags} >/dev/null 2>&1 & )
fi
if [ "X${httpd_flags}" != X"NO" ]; then