diff options
author | 2000-09-06 17:19:27 +0000 | |
---|---|---|
committer | 2000-09-06 17:19:27 +0000 | |
commit | e18bddb24b8109ee1bf9782965c3237a0f66ce64 (patch) | |
tree | d1be232605d75080714495ddf55a056ebab6975d | |
parent | much more meat, but objdump is still broken.. (diff) | |
download | wireguard-openbsd-e18bddb24b8109ee1bf9782965c3237a0f66ce64.tar.xz wireguard-openbsd-e18bddb24b8109ee1bf9782965c3237a0f66ce64.zip |
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.
-rw-r--r-- | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |