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

Rémi Denis-Courmont remi at remlab.net
Mon Oct 10 18:16:16 CEST 2011


Le lundi 10 octobre 2011 14:44:12 KO Myung-Hun, vous avez écrit :
> 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

Is this warranted to hit the main thread?
Is this not longer than 'raise(SIGTERM);' ?

>  }
> 
>  static void exit_timeout (int signum)


-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list