sendmail - pre-fork in daemon mode to avoid stall (2)
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 22 Aug 2014 18:41:54 +0000 (11:41 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 22 Aug 2014 18:41:54 +0000 (11:41 -0700)
commit36bc4ae216e6e600289fc20777a84e27da314bf5
tree988602705bc34717b97fb81cb281e9f223264384
parent0326eb7832110163731e1372340be803f1caf760
sendmail - pre-fork in daemon mode to avoid stall (2)

* disconnect() and set CurrentPid on pre-fork.  This fixes an issue where
  the boot console is revoked and enters getty before the backgrounded
  sendmail disconnects from the foreground process and tty, causing sendmail
  to complain in /var/log/maillog.

  This issue can occur due to myhostname() stalls when the internet is not
  available (e.g. /etc/resolv.conf is present but wifi-only system has not
  yet associated), or has other connectivity issues during boot.

Reported-by: Rolinh
usr.sbin/sendmail/main.c.patch