summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/osl/w32/signal.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/sal/osl/w32/signal.c b/sal/osl/w32/signal.c
index 24d23d511869..0db63779bc8f 100644
--- a/sal/osl/w32/signal.c
+++ b/sal/osl/w32/signal.c
@@ -4,9 +4,9 @@
*
* $RCSfile: signal.c,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 15:11:51 $
+ * last change: $Author: rt $ $Date: 2005-11-11 12:25:39 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -51,6 +51,7 @@ typedef struct _oslSignalHandlerImpl
struct _oslSignalHandlerImpl* pNext;
} oslSignalHandlerImpl;
+static sal_Bool bErrorReportingEnabled = sal_True;
static sal_Bool bInitSignal = sal_False;
static oslMutex SignalListMutex;
static oslSignalHandlerImpl* SignalList;
@@ -120,6 +121,9 @@ static BOOL ReportCrash( LPEXCEPTION_POINTERS lpEP )
STARTUPINFO StartupInfo;
int argi;
+ if ( !bErrorReportingEnabled )
+ return FALSE;
+
/* Check if crash reporter was disabled by command line */
for ( argi = 1; argi < __argc; argi++ )
@@ -418,3 +422,13 @@ oslSignalAction SAL_CALL osl_raiseSignal(sal_Int32 UserSignal, void* UserData)
return (Action);
}
+/*****************************************************************************/
+/* osl_setErrorReporting */
+/*****************************************************************************/
+sal_Bool SAL_CALL osl_setErrorReporting( sal_Bool bEnable )
+{
+ sal_Bool bOld = bErrorReportingEnabled;
+ bErrorReportingEnabled = bEnable;
+
+ return bOld;
+}