gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r25994 - Extractor/src/main


From: gnunet
Subject: [GNUnet-SVN] r25994 - Extractor/src/main
Date: Sun, 3 Feb 2013 18:17:44 +0100

Author: LRN
Date: 2013-02-03 18:17:43 +0100 (Sun, 03 Feb 2013)
New Revision: 25994

Modified:
   Extractor/src/main/extractor_plugin_main.c
Log:
Make plugins suicide after finishing to avoid error popups

Modified: Extractor/src/main/extractor_plugin_main.c
===================================================================
--- Extractor/src/main/extractor_plugin_main.c  2013-02-03 17:17:39 UTC (rev 
25993)
+++ Extractor/src/main/extractor_plugin_main.c  2013-02-03 17:17:43 UTC (rev 
25994)
@@ -732,6 +732,13 @@
   EXTRACTOR_plugin_main_ (plugin, in, out);
   close (in);
   close (out);
+  /* libgobject may crash us hard if we LoadLibrary() it directly or
+   * indirectly, and then exit normally (causing FreeLibrary() to be
+   * called by the OS) or call FreeLibrary() on it directly or
+   * indirectly.
+   * By terminating here we alleviate that problem.
+   */
+  TerminateProcess (GetCurrentProcess (), 0);
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]