X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bin%2Fvlc.c;h=7a84ab794491e579fb71234275d51ff9770ac41c;hb=f0f9acb1def56a589910e22eb082247211a5916a;hp=c8a05bae43d20b9bc8cbe8d2333ae99344aae2d1;hpb=e1c2b18a4dfbf07e32730ac1fc3a6ed153099ca5;p=vlc diff --git a/bin/vlc.c b/bin/vlc.c index c8a05bae43..7a84ab7944 100644 --- a/bin/vlc.c +++ b/bin/vlc.c @@ -203,7 +203,7 @@ int main( int i_argc, const char *ppsz_argv[] ) if (vlc == NULL) goto out; - libvlc_set_user_agent (vlc, "VLC media player", NULL); + libvlc_set_user_agent (vlc, "VLC media player", NULL); #if !defined (HAVE_MAEMO) && !defined __APPLE__ libvlc_add_intf (vlc, "globalhotkeys,none"); @@ -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); }