Переглянути джерело

2003-06-05 Dick Porter <[email protected]>

	* driver.c: Set the glib log levels to not abort if g_message
	recurses.

	g_set_prgname() has to happen before mini_init() so that the
	process handle gets the info.

svn path=/trunk/mono/; revision=15139
Dick Porter 22 роки тому
батько
коміт
eae652e79a
2 змінених файлів з 13 додано та 1 видалено
  1. 7 0
      mono/mini/ChangeLog
  2. 6 1
      mono/mini/driver.c

+ 7 - 0
mono/mini/ChangeLog

@@ -1,4 +1,11 @@
+2003-06-05  Dick Porter  <[email protected]>
 
+	* driver.c: Set the glib log levels to not abort if g_message
+	recurses.
+
+	g_set_prgname() has to happen before mini_init() so that the
+	process handle gets the info.
+	
 Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <[email protected]>
 
 	* driver.c: add intrins to the default optimizations to get wider

+ 6 - 1
mono/mini/driver.c

@@ -532,6 +532,8 @@ mono_main (int argc, char* argv[]) {
 	int mini_verbose = 0;
 
 	setlocale (LC_ALL, "");
+	g_log_set_always_fatal (G_LOG_LEVEL_ERROR);
+	g_log_set_fatal_mask (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR);
 	
 	opt = parse_optimizations (NULL);
 
@@ -606,6 +608,10 @@ mono_main (int argc, char* argv[]) {
 		return 1;
 	}
 
+	if (mono_compile_aot || action == DO_EXEC) {
+		g_set_prgname (argv[i]);
+	}
+
 	mono_set_defaults (mini_verbose, opt);
 	domain = mini_init (argv [i]);
 
@@ -666,7 +672,6 @@ mono_main (int argc, char* argv[]) {
 		mono_debug_init_2 (assembly);
 
 	if (mono_compile_aot || action == DO_EXEC) {
-		g_set_prgname (aname);
 		mono_config_parse (config_file);
 		//mono_set_rootdir ();