X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bin%2Fvlc.c;h=1c64656a23377d4ec67ec4451b1c7250a7feb605;hb=9cca111d2805ecab4ddcb646703c1852f9717a7b;hp=182a7edc6c3af332c45cc7a21330e3e2ca7e150a;hpb=6971cd483612b792063283faa6da1be6bc35b6fe;p=vlc diff --git a/bin/vlc.c b/bin/vlc.c index 182a7edc6c..1c64656a23 100644 --- a/bin/vlc.c +++ b/bin/vlc.c @@ -47,6 +47,7 @@ extern char *FromLocale (const char *); #include #include #include +#include /***************************************************************************** * main: parse command line, start interface and spawn threads. @@ -172,5 +173,14 @@ int main( int i_argc, const char *ppsz_argv[] ) 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 ("libkfilemodule.so", RTLD_LAZY|RTLD_LOCAL|RTLD_NOLOAD) != NULL) + { + fprintf (stderr, "KFile plugin present. Unclean shutdown!\n"); + _exit (0); + } +#endif return 0; }