diff options
author | Rüdiger Timm <rt@openoffice.org> | 2003-04-17 13:26:01 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2003-04-17 13:26:01 +0000 |
commit | 6f1ddb5dba95154e208a49cd937ee6edc5508941 (patch) | |
tree | d916e4b98b78d41c6597600d02509d647aef28bc /sal/osl/unx/signal.c | |
parent | 0150aeb444224da88714b069f3948eb29d3aef31 (diff) |
INTEGRATION: CWS crashrep05 (1.10.8); FILE MERGED
2003/04/17 12:59:33 hro 1.10.8.1: #105654# soffice -nocrashreport disables crashreporter
Diffstat (limited to 'sal/osl/unx/signal.c')
-rw-r--r-- | sal/osl/unx/signal.c | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/sal/osl/unx/signal.c b/sal/osl/unx/signal.c index 0b3a1676456c..fb6e59e16e01 100644 --- a/sal/osl/unx/signal.c +++ b/sal/osl/unx/signal.c @@ -2,9 +2,9 @@ * * $RCSfile: signal.c,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: hr $ $Date: 2003-03-26 16:46:05 $ + * last change: $Author: rt $ $Date: 2003-04-17 14:26:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -260,6 +260,27 @@ static int ReportCrash( int Signal ) { static sal_Bool bCrashReporterExecuted = sal_False; + sal_uInt32 argi; + sal_uInt32 argc; + rtl_uString *ustrCommandArg = NULL; + + argc = osl_getCommandArgCount(); + + for ( argi = 0; argi < argc; argi++ ) + { + if ( osl_Process_E_None == osl_getCommandArg( argi, &ustrCommandArg ) ) + { + if ( 0 == rtl_ustr_ascii_compare( rtl_uString_getStr( ustrCommandArg ), "-nocrashreport" ) ) + { + rtl_uString_release( ustrCommandArg ); + return -1; + } + } + } + + if ( ustrCommandArg ) + rtl_uString_release( ustrCommandArg ); + if ( !bCrashReporterExecuted ) { int i; |