Commit d72063d6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix signal number

parent ad87b924
...@@ -45,7 +45,6 @@ vlc_module_end (); ...@@ -45,7 +45,6 @@ vlc_module_end ();
struct intf_sys_t struct intf_sys_t
{ {
vlc_thread_t thread; vlc_thread_t thread;
int signum;
}; };
static int Open (vlc_object_t *obj) static int Open (vlc_object_t *obj)
...@@ -56,7 +55,6 @@ static int Open (vlc_object_t *obj) ...@@ -56,7 +55,6 @@ static int Open (vlc_object_t *obj)
if (p_sys == NULL) if (p_sys == NULL)
return VLC_ENOMEM; return VLC_ENOMEM;
p_sys->signum = 0;
intf->p_sys = p_sys; intf->p_sys = p_sys;
if (vlc_clone (&p_sys->thread, SigThread, obj, VLC_THREAD_PRIORITY_LOW)) if (vlc_clone (&p_sys->thread, SigThread, obj, VLC_THREAD_PRIORITY_LOW))
...@@ -89,7 +87,6 @@ static void Close (vlc_object_t *obj) ...@@ -89,7 +87,6 @@ static void Close (vlc_object_t *obj)
static void *SigThread (void *data) static void *SigThread (void *data)
{ {
intf_thread_t *obj = data; intf_thread_t *obj = data;
intf_sys_t *p_sys = obj->p_sys;
sigset_t set; sigset_t set;
sigemptyset (&set); sigemptyset (&set);
...@@ -119,7 +116,7 @@ static void *SigThread (void *data) ...@@ -119,7 +116,7 @@ static void *SigThread (void *data)
case SIGTERM: case SIGTERM:
case SIGQUIT: case SIGQUIT:
msg_Err (obj, "Caught %s signal, exiting...", msg_Err (obj, "Caught %s signal, exiting...",
strsignal (p_sys->signum)); strsignal (signum));
vlc_object_kill (obj->p_libvlc); vlc_object_kill (obj->p_libvlc);
break; break;
} }
......
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