[vlc-devel] Fwd: [Patch] Symbian Merge__Changes to /src/bin

Jean-Baptiste Kempf jb at videolan.org
Thu Jul 29 10:58:04 CEST 2010


On Thu, Jul 29, 2010 at 01:46:48AM -0700, Pankaj yadav wrote :
> -#if 0
>  /** Signals **/
>  #include <signal.h>
>  
> @@ -253,7 +252,6 @@ error:
>      LOG("Blocked", "%d, %p, %p", signum, act, old);
>      return -1;
>  }
> -#endif
Why ?

> -static void exit_timeout (int signum)
> -{
> -    (void) signum;
> -    signal (SIGINT, SIG_DFL);
> -}
Why?

> +#ifndef SYMBIAN
>      if (signal_ignored (SIGHUP)) /* <- needed to handle nohup properly */
>          sigdelset (&set, SIGHUP);
>      sigdelset (&set, SIGPIPE);
> @@ -225,16 +235,9 @@ int main( int i_argc, const char *ppsz_argv[] )
>      do
>          sigwait (&set, &signum);
>      while (signum == SIGCHLD);
> -
> -    /* Restore default signal behaviour after 3 seconds */
> -    sigemptyset (&set);
> -    sigaddset (&set, SIGINT);
> -    sigaddset (&set, SIGALRM);
> -    signal (SIGINT, SIG_IGN);
> -    signal (SIGALRM, exit_timeout);
> -    pthread_sigmask (SIG_UNBLOCK, &set, NULL);
> -    alarm (3);
> -
> +#else
> +    symbian_libvlc_Wait((libvlc_int_t*)vlc);
> +#endif

Why removing those lines?

Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list