[vlc-commits] Use kill() instead of pthread_kill() on OS/2.
KO Myung-Hun
git at videolan.org
Tue Oct 11 18:58:01 CEST 2011
vlc | branch: master | KO Myung-Hun <komh at chollian.net> | Mon Oct 10 20:44:12 2011 +0900| [9eb2f121b363aa913552cbf9a4e6d6c900be22af] | committer: Rémi Denis-Courmont
Use kill() instead of pthread_kill() on OS/2.
pthread_kill() has not been implemented on OS/2, yet.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9eb2f121b363aa913552cbf9a4e6d6c900be22af
---
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)
More information about the vlc-commits
mailing list