Subject: Re: Patch to latest sendmail version
To: Ty Sarna <tsarna@endicor.com>
From: Bernd Ernesti <netbsd@arresum.inka.de>
List: current-users
Date: 04/09/1995 16:42:01
Hi,

> In article <199504082326.TAA06231@duality.gnu.ai.mit.edu>,
> Charles M. Hannum <mycroft@ai.mit.edu> wrote:
> > 
> > I just committed that change.  All I have to say is `SIGH'.
> 
> There is a sendmail patch from 8.6.11->8.6.12 which fixes this plus
> something else (forget what).  You might want to get it from
> ftp.cs.berkeley.edu and apply. 

      Fix a problem that could cause large jobs to run out of
              file descriptors on systems that use vfork() rather
              than fork().

*** src/deliver.c.OLD	Tue Mar 28 18:25:16 1995
--- src/deliver.c	Tue Mar 28 18:26:17 1995
***************
*** 1182,1191 ****
  			extern int DtableSize;
  
  			if (e->e_lockfp != NULL)
! 			{
! 				fclose(e->e_lockfp);
! 				e->e_lockfp = NULL;
! 			}
  
  			/* child -- set up input & exec mailer */
  			(void) setsignal(SIGINT, SIG_IGN);
--- 1182,1188 ----
  			extern int DtableSize;
  
  			if (e->e_lockfp != NULL)
! 				(void) close(fileno(e->e_lockfp));
  
  			/* child -- set up input & exec mailer */
  			(void) setsignal(SIGINT, SIG_IGN);


Bernd