]> git.sesse.net Git - vlc/commitdiff
Always call _exit() at end to avoid buggy exit handlers
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 8 Aug 2010 20:06:02 +0000 (23:06 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 8 Aug 2010 20:06:02 +0000 (23:06 +0300)
Removes the KDE scheduler hack.

bin/vlc.c

index 25fcf51644e4f4330b44740c08c08afb2518ff9a..7a84ab794491e579fb71234275d51ff9770ac41c 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -242,15 +242,8 @@ out:
     for (int i = 1; i < argc; i++)
         LocaleFree (argv[i]);
 
-#ifdef RTLD_NOLOAD
-    /* Avoid crash in KIO scheduler cleanup. */
-    /* This is ugly, but we get way too many crash reports due to this. */
-    if (dlopen ("libkio.so.5", RTLD_LAZY|RTLD_LOCAL|RTLD_NOLOAD) != NULL)
-    {
-        fprintf (stderr, "KIO present. Unclean shutdown!\n"
-           " (see http://bugs.kde.org/show_bug.cgi?id=234484 for details)\n");
-        _exit (0);
-    }
-#endif
-    return 0;
+    /* Do not run exit handlers. Some of them are buggy (e.g. KDE IO scheduler)
+     * and crash. Also some will crash because their library may be already
+     * unloaded (dlclose()). */
+    _exit (0);
 }