Commit 725cf4eb 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.
parent c515906b
...@@ -242,15 +242,8 @@ out: ...@@ -242,15 +242,8 @@ out:
for (int i = 1; i < argc; i++) for (int i = 1; i < argc; i++)
LocaleFree (argv[i]); LocaleFree (argv[i]);
#ifdef RTLD_NOLOAD /* Do not run exit handlers. Some of them are buggy (e.g. KDE IO scheduler)
/* Avoid crash in KIO scheduler cleanup. */ * and crash. Also some will crash because their library may be already
/* This is ugly, but we get way too many crash reports due to this. */ * unloaded (dlclose()). */
if (dlopen ("", RTLD_LAZY|RTLD_LOCAL|RTLD_NOLOAD) != NULL) _exit (0);
fprintf (stderr, "KIO present. Unclean shutdown!\n"
" (see for details)\n");
_exit (0);
return 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