more attempts to trap fd 1 bug
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Sat, 20 Nov 1993 22:57:29 +0000 (14:57 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Sat, 20 Nov 1993 22:57:29 +0000 (14:57 -0800)
SCCS-vsn: usr.sbin/sendmail/src/envelope.c 8.19

usr/src/usr.sbin/sendmail/src/envelope.c

index e3b298b..dab4b79 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)envelope.c 8.18 (Berkeley) %G%";
+static char sccsid[] = "@(#)envelope.c 8.19 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "sendmail.h"
 #endif /* not lint */
 
 #include "sendmail.h"
@@ -92,6 +92,10 @@ dropenvelope(e)
                }
        }
 
                }
        }
 
+#ifdef XDEBUG
+       checkfd012("dropenvelope 1");
+#endif
+
        /* we must have an id to remove disk files */
        if (id == NULL)
                return;
        /* we must have an id to remove disk files */
        if (id == NULL)
                return;
@@ -197,6 +201,10 @@ dropenvelope(e)
        if (saveit && e->e_errormode != EM_QUIET)
                savemail(e);
 
        if (saveit && e->e_errormode != EM_QUIET)
                savemail(e);
 
+#ifdef XDEBUG
+       checkfd012("dropenvelope 2");
+#endif
+
        /*
        **  Arrange to send warning messages to postmaster as requested.
        */
        /*
        **  Arrange to send warning messages to postmaster as requested.
        */
@@ -237,6 +245,10 @@ dropenvelope(e)
 #endif /* QUEUE */
        }
 
 #endif /* QUEUE */
        }
 
+#ifdef XDEBUG
+       checkfd012("dropenvelope 3");
+#endif
+
        /* now unlock the job */
        closexscript(e);
        unlockqueue(e);
        /* now unlock the job */
        closexscript(e);
        unlockqueue(e);
@@ -247,7 +259,7 @@ dropenvelope(e)
        e->e_dfp = NULL;
        e->e_id = e->e_df = NULL;
 #ifdef XDEBUG
        e->e_dfp = NULL;
        e->e_id = e->e_df = NULL;
 #ifdef XDEBUG
-       checkfd012("dropenvelope");
+       checkfd012("dropenvelope 4");
 #endif
 }
 \f/*
 #endif
 }
 \f/*