ignore process group signals -- some front ends screw this up
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 22 Feb 1993 06:34:39 +0000 (22:34 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 22 Feb 1993 06:34:39 +0000 (22:34 -0800)
SCCS-vsn: usr.sbin/sendmail/src/main.c 6.23

usr/src/usr.sbin/sendmail/src/main.c

index d390b6d..9c6a031 100644 (file)
@@ -13,7 +13,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     6.22 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     6.23 (Berkeley) %G%";
 #endif /* not lint */
 
 #define        _DEFINE
 #endif /* not lint */
 
 #define        _DEFINE
@@ -841,6 +841,9 @@ main(argc, argv, envp)
        **  Do basic system initialization and set the sender
        */
 
        **  Do basic system initialization and set the sender
        */
 
+       /* make sendmail immune from process group signals */
+       (void) setpgrp(0, getpid());
+
        initsys(CurEnv);
        setsender(from, CurEnv);
 
        initsys(CurEnv);
        setsender(from, CurEnv);