[vlc-devel] [PATCH 33/41] Use kill() instead of pthread_kill() on OS/2.

KO Myung-Hun komh at chollian.net
Mon Oct 10 13:44:12 CEST 2011


pthread_kill() has not been implemented on OS/2, yet.
---
 bin/vlc.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/bin/vlc.c b/bin/vlc.c
index 394211a..3451360 100644
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -67,9 +67,14 @@ static bool signal_ignored (int signum)
 
 static void vlc_kill (void *data)
 {
+#ifndef __OS2__
     pthread_t *ps = data;
 
     pthread_kill (*ps, SIGTERM);
+#else
+    // send a signal to the main thread
+    kill (getpid(), SIGTERM);
+#endif
 }
 
 static void exit_timeout (int signum)
-- 
1.7.3.2



More information about the vlc-devel mailing list