Newsgroups: comp.mail.sendmail
Subject:    Re: sendmail 8.8.8 and core dump on -q
Author:     Gregory Neil Shapiro <gshapiro@WPI.EDU>
Date:       12 Nov 1997 21:45:45 -0500

thunder> I am getting coredumps with sendmail 8.8.8 when i issued the sendmail
thunder> -q command.  It seems to be dumping the queue fine when i invoke the
thunder> daemon (sendmail -bd -q30m) the queue seems to dump just fine.  I
thunder> have also upgraded to dbm1.85 on this system, but i don't know how
thunder> that would affect anything else.  It's happening on multiple systems
thunder> and can't figure out why.. I'm sure the same thing will happen if I
thunder> go back with dbm.

Here is a patch:

*** main.c	Mon Oct 20 12:18:51 1997
--- ./main.c	Thu Nov  6 11:57:56 1997
***************
*** 250,255 ****
--- 250,258 ----
  	setsignal(SIGUSR1, sigusr1);
  #endif
  
+ 	/* initialize for setproctitle */
+ 	initsetproctitle(argc, argv, envp);
+ 
  	/* Handle any non-getoptable constructions. */
  	obsolete(argv);
  
***************
*** 401,409 ****
  
  	InChannel = stdin;
  	OutChannel = stdout;
- 
- 	/* initialize for setproctitle */
- 	initsetproctitle(argc, argv, envp);
  
  	/* clear sendmail's environment */
  	ExternalEnviron = environ;
--- 404,409 ----
