Commit 9eb2f121 authored by KO Myung-Hun's avatar KO Myung-Hun Committed by 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: default avatarRémi Denis-Courmont <remi@remlab.net>
parent ef188710
......@@ -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)
......
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