Commit 8918cf78 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Always call _exit() at end to avoid buggy exit handlers

Removes the KDE scheduler hack.
(cherry picked from commit 725cf4eb04ab02491301a83d8ce6a5c3f5d80794)

Conflicts:

	bin/vlc.c
parent 7ab66da7
......@@ -292,16 +292,6 @@ int (*XSetIOErrorHandler (int (*handler) (Display *))) (Display *)
}
#endif
/*** Buggy shared objects ***/
#include <string.h>
void *dlopen (const char *path, int flag)
{
if (path && strstr (path, "/gui_platform/libkde.so"))
return NULL; /* Oh no, not that one! */
return CALL(dlopen, path, flag);
}
#else
void vlc_enable_override (void)
{
......
......@@ -200,5 +200,8 @@ int main( int i_argc, const char *ppsz_argv[] )
for (int i = 1; i < argc; i++)
LocaleFree (argv[i]);
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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment