git: sendmail - pre-fork in daemon mode to avoid stall (2)

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Aug 22 11:45:53 PDT 2014


commit 36bc4ae216e6e600289fc20777a84e27da314bf5
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Aug 22 11:41:54 2014 -0700

    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

Summary of changes:
 usr.sbin/sendmail/main.c.patch | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/36bc4ae216e6e600289fc20777a84e27da314bf5


-- 
DragonFly BSD source repository



More information about the Commits mailing list