Add SLEEP_ON_ABORT
authorBruce Momjian
Thu, 18 Jun 1998 16:35:38 +0000 (16:35 +0000)
committerBruce Momjian
Thu, 18 Jun 1998 16:35:38 +0000 (16:35 +0000)
src/backend/utils/error/assert.c

index c33b13d7091f87916eb2ac933d6abb3f972006f3..60b913474dddac103e5d3fb0258bc9913c3fa0c5 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.8 1998/06/18 16:32:51 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.9 1998/06/18 16:35:38 momjian Exp $
  *
  * NOTE
  *   This should eventually work with elog(), dlog(), etc.
@@ -15,6 +15,7 @@
  *-------------------------------------------------------------------------
  */
 #include 
+#include 
 
 #include "postgres.h"          /* where the declaration goes */
 #include "utils/module.h"
@@ -54,9 +55,11 @@ ExceptionalCondition(char *conditionName,
    }
 
 #ifdef ABORT_ON_ASSERT
-   sleep(99999);
    abort();
 #endif
+#ifdef SLEEP_ON_ASSERT
+   sleep(1000000);
+#endif
 
    /*
     * XXX Depending on the Exception and tracing conditions, you will XXX