[vlc-devel] commit: Fix signal number ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Sep 21 13:55:59 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Sep 21 14:58:38 2008 +0300| [d72063d6091148b4cea86736adbd374b8b178c30] | committer: Rémi Denis-Courmont
Fix signal number
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d72063d6091148b4cea86736adbd374b8b178c30
---
modules/control/signals.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/modules/control/signals.c b/modules/control/signals.c
index 9c945c3..840a811 100644
--- a/modules/control/signals.c
+++ b/modules/control/signals.c
@@ -45,7 +45,6 @@ vlc_module_end ();
struct intf_sys_t
{
vlc_thread_t thread;
- int signum;
};
static int Open (vlc_object_t *obj)
@@ -56,7 +55,6 @@ static int Open (vlc_object_t *obj)
if (p_sys == NULL)
return VLC_ENOMEM;
- p_sys->signum = 0;
intf->p_sys = p_sys;
if (vlc_clone (&p_sys->thread, SigThread, obj, VLC_THREAD_PRIORITY_LOW))
@@ -89,7 +87,6 @@ static void Close (vlc_object_t *obj)
static void *SigThread (void *data)
{
intf_thread_t *obj = data;
- intf_sys_t *p_sys = obj->p_sys;
sigset_t set;
sigemptyset (&set);
@@ -119,7 +116,7 @@ static void *SigThread (void *data)
case SIGTERM:
case SIGQUIT:
msg_Err (obj, "Caught %s signal, exiting...",
- strsignal (p_sys->signum));
+ strsignal (signum));
vlc_object_kill (obj->p_libvlc);
break;
}
More information about the vlc-devel
mailing list