]> git.sesse.net Git - vlc/blobdiff - src/misc/pthread.c
Maemo: work-around segmentation fault when poll() unwinds
[vlc] / src / misc / pthread.c
index 264d1bf713bde7b0c9e3d70e60562ba1d07a7b1d..5385d7c0a08594b43ea54e783023690300eb0481 100644 (file)
@@ -688,6 +688,9 @@ int vlc_clone (vlc_thread_t *p_handle, void * (*entry) (void *), void *data,
 void vlc_cancel (vlc_thread_t thread_id)
 {
     pthread_cancel (thread_id);
+#ifdef HAVE_MAEMO
+    pthread_kill (thread_id, SIGRTMIN);
+#endif
 }
 
 /**